vinnie357 / f5-ansible-workspace

ansible workspace for f5 and related tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SE Ansible workspace for f5

Pre requisites:

Environment any of:

Software tools:
Repo:
se-tmos-install https://github.com/vinnie357/se-tmos-install
software images:
  • current BIG-IP ova
nice to have:
  • BIG-IQ with Virtual Edition license pools
  • VMware vSphere

Clone and Install

create your python virtual enviroment then follow the install steps. running bash install.sh will do this for you

chmod +x install.sh
./install.sh

script common failures:

If your Ubuntu machine doesn't get PIP

sudo apt-add-repository universe
sudo apt-get update

https://stackoverflow.com/questions/49836676/error-after-upgrading-pip-cannot-import-name-main

git ignore:

create a .gitignore in the root directory make sure to ignore the ansible directory

touch .gitignore
echo "ansible" >> .gitignore
echo ".gitignore" >> .gitignore
echo "f5-appsvcs-extension" >> .gitignore
echo "f5-declarative-onboarding" >> .gitignore
echo "f5-telemetry-streaming" >> .gitignore
echo "rpms/*" >> .gitignore
echo "ova/*" >> .gitignore
echo "group_vars/*" >> .gitignore
echo "host_vars/*" >> .gitignore

modify ovas for custom IPs
https://devcentral.f5.com/articles/ve-on-vmware-part-1-custom-properties-29787
Common OVF Tool
https://cot.readthedocs.io/en/latest/introduction.html

example: cot edit-properties source-filename.ova -p net.mgmt.addr=""+string -p net.mgmt.gw=""+string -p user.root.pwd=""+string -p user.admin.pwd=""+string -u -o destination-filename.ova

pip install cot
cot edit-properties BIGIP-13.1.1.3-0.0.1.ALL-scsi.ova -p net.mgmt.addr=""+string -p net.mgmt.gw=""+string -p user.root.pwd=""+password -p user.admin.pwd=""+password -u -o vcenter-BIGIP-13.1.1.3-0.0.1.ALL-scsi.ova

expects: "vcenter-BIGIP-13.1.1.3-0.0.1.ALL-scsi.ova" copy modified OVA to your project ova/f5 directory

## remove rpms and copy rpms to run for Automation tool chain

rm -r rpms/*
cp f5-appsvcs-extension/dist/latest/*.rpm* rpms/
cp f5-declarative-onboarding/dist/*.rpm* rpms/
cp f5-telemetry-streaming/dist/*.rpm* rpms/

Setup

Note

hostname is not the FQDN in the folderstructure


populate your host_vars

host_vars
    hostname
        vars.yml
        vault.yml

populate your group_vars

group_vars
    groupname

populate your inventory

inventory
    [groupname]
        hostname

encrypt your vault passwords

ansible-vault encrypt vault.yml

create your context

context
    yourtask.yml

Deploy

create a context json with your target and role options

run deploy with your provided context

ansible-playbook deploy.yaml --extra-vars "@./context/bigip.yml" --ask-vault-pass

ansible-playbook deploy.yaml --extra-vars "@./context/bigip.yml" --vault-password-file ~/.vault_pass.txt

Exit Virtual enviroment

deactivate

To Do

  • APM
    • expand apm policy
      • logon
      • ad auth
      • group check
      • sso
      • resource assign
      • network access profile
      • lease pool
    • attach new access items
      • connectivity profile
        • https
        • dtls
  • Device
    • bigip HA with DO
    • trunks
  • BIG-IQ
    • new device discovery and import
  • Deprovisioning
    • create bigiq license clean up calls
    • device removal
  • Management
    • Password rotation after deployment
  • General
    • explain vmware OVA edits
      • device info for facts
      • /mgmt/shared/identified-devices/config/device-info

About

ansible workspace for f5 and related tech

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%