├── Vagrant
├── roles
│ ├── ansible-mysql
│ │ ├── files
│ │ │ └── .gitkeep
│ │ ├── .gitignore
│ │ ├── requirements.yml
│ │ ├── templates
│ │ │ ├── .gitkeep
│ │ │ ├── etc
│ │ │ │ ├── mysql
│ │ │ │ │ └── conf.d
│ │ │ │ │ │ └── client.cnf.j2
│ │ │ │ └── xinetd.d
│ │ │ │ │ └── mysqlchk.j2
│ │ │ └── root
│ │ │ │ └── my.cnf.j2
│ │ ├── vars
│ │ │ └── main.yml
│ │ ├── CONTRIBUTORS.md
│ │ ├── requirements-dev.txt
│ │ ├── meta
│ │ │ ├── .galaxy_install_info
│ │ │ └── main.yml
│ │ ├── requirements.txt
│ │ ├── playbook.yml
│ │ ├── molecule
│ │ │ ├── shared
│ │ │ │ ├── converge.yml
│ │ │ │ └── verify.yml
│ │ │ ├── centos7
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── centos8
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian10
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian8
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian9
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── fedora
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── ubuntu1604
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ └── ubuntu1804
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ ├── tasks
│ │ │ ├── dbs.yml
│ │ │ ├── mysql_root_pw.yml
│ │ │ ├── debian.yml
│ │ │ ├── db_users.yml
│ │ │ ├── main.yml
│ │ │ └── alpine.yml
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── CONTRIBUTING.md
│ │ ├── .travis.yml
│ │ ├── .yamllint
│ │ ├── .gitlab-ci.yml
│ │ ├── LICENSE.md
│ │ └── README.md
│ ├── ansible-apache2
│ │ ├── files
│ │ │ └── .gitkeep
│ │ ├── requirements.yml
│ │ ├── templates
│ │ │ ├── .gitkeep
│ │ │ └── etc
│ │ │ │ └── apache2
│ │ │ │ ├── conf.d
│ │ │ │ └── default.conf.j2
│ │ │ │ ├── ports.conf.j2
│ │ │ │ └── sites-available
│ │ │ │ └── 000-default.conf.j2
│ │ ├── .gitignore
│ │ ├── requirements-dev.txt
│ │ ├── vars
│ │ │ └── main.yml
│ │ ├── CONTRIBUTORS.md
│ │ ├── meta
│ │ │ ├── .galaxy_install_info
│ │ │ └── main.yml
│ │ ├── playbook.yml
│ │ ├── requirements.txt
│ │ ├── molecule
│ │ │ ├── shared
│ │ │ │ ├── converge.yml
│ │ │ │ └── verify.yml
│ │ │ ├── centos7
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── centos8
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian8
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian9
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── fedora
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian10
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── ubuntu1604
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ └── ubuntu1804
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ ├── tasks
│ │ │ ├── opensuse.yml
│ │ │ ├── alpine.yml
│ │ │ ├── debian.yml
│ │ │ ├── redhat.yml
│ │ │ └── main.yml
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── CONTRIBUTING.md
│ │ ├── .travis.yml
│ │ ├── .yamllint
│ │ ├── .gitlab-ci.yml
│ │ ├── LICENSE.md
│ │ └── README.md
│ ├── ansible-rsyslog
│ │ ├── files
│ │ │ └── .gitkeep
│ │ ├── requirements.yml
│ │ ├── templates
│ │ │ ├── .gitkeep
│ │ │ └── etc
│ │ │ │ └── rsyslog.d
│ │ │ │ └── 50-default.conf.j2
│ │ ├── .gitignore
│ │ ├── requirements-dev.txt
│ │ ├── vars
│ │ │ └── main.yml
│ │ ├── CONTRIBUTORS.md
│ │ ├── meta
│ │ │ ├── .galaxy_install_info
│ │ │ └── main.yml
│ │ ├── requirements.txt
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── playbook.yml
│ │ ├── molecule
│ │ │ ├── shared
│ │ │ │ ├── converge.yml
│ │ │ │ └── verify.yml
│ │ │ ├── centos7
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── centos8
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian8
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian9
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── fedora
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian10
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── ubuntu1604
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ └── ubuntu1804
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ ├── tasks
│ │ │ ├── main.yml
│ │ │ ├── debian.yml
│ │ │ └── redhat.yml
│ │ ├── CONTRIBUTING.md
│ │ ├── .travis.yml
│ │ ├── .yamllint
│ │ ├── .gitlab-ci.yml
│ │ ├── LICENSE.md
│ │ └── README.md
│ ├── ansible-bootstrap-python
│ │ ├── files
│ │ │ └── .gitkeep
│ │ ├── requirements.yml
│ │ ├── templates
│ │ │ └── .gitkeep
│ │ ├── .gitignore
│ │ ├── CONTRIBUTORS.md
│ │ ├── requirements-dev.txt
│ │ ├── vars
│ │ │ └── main.yml
│ │ ├── defaults
│ │ │ └── main.yml
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── meta
│ │ │ ├── .galaxy_install_info
│ │ │ └── main.yml
│ │ ├── playbook.yml
│ │ ├── requirements.txt
│ │ ├── molecule
│ │ │ ├── shared
│ │ │ │ ├── converge.yml
│ │ │ │ └── verify.yml
│ │ │ ├── centos7
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── centos8
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian10
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian8
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── debian9
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── fedora
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ ├── ubuntu1604
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ │ └── ubuntu1804
│ │ │ │ ├── verify.yml
│ │ │ │ ├── molecule.yml
│ │ │ │ └── INSTALL.rst
│ │ ├── tasks
│ │ │ ├── debian.yml
│ │ │ ├── main.yml
│ │ │ └── redhat.yml
│ │ ├── CONTRIBUTING.md
│ │ ├── .travis.yml
│ │ ├── .yamllint
│ │ ├── .gitlab-ci.yml
│ │ └── LICENSE.md
│ ├── ansible-ntp
│ │ ├── tests
│ │ │ ├── inventory
│ │ │ ├── .ansible-lint
│ │ │ ├── test.yml
│ │ │ ├── Dockerfile.ubuntu-xenial
│ │ │ ├── Dockerfile.debian-stretch
│ │ │ ├── Dockerfile.ubuntu-bionic
│ │ │ ├── Dockerfile.debian-jessie
│ │ │ ├── Dockerfile.ubuntu-trusty
│ │ │ ├── Dockerfile.fedora-24
│ │ │ ├── Dockerfile.fedora-25
│ │ │ ├── Dockerfile.fedora-26
│ │ │ ├── Dockerfile.fedora-27
│ │ │ ├── Dockerfile.fedora-28
│ │ │ ├── Dockerfile.fedora-29
│ │ │ └── Dockerfile.centos-7
│ │ ├── vars
│ │ │ └── main.yml
│ │ ├── meta
│ │ │ ├── .galaxy_install_info
│ │ │ └── main.yml
│ │ ├── tasks
│ │ │ ├── main.yml
│ │ │ ├── debian.yml
│ │ │ └── redhat.yml
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── setup_travis_tests.sh
│ │ └── defaults
│ │ │ └── main.yml
│ ├── ansible-etc-hosts
│ │ ├── tests
│ │ │ ├── inventory
│ │ │ ├── .ansible-lint
│ │ │ ├── test.yml
│ │ │ ├── Dockerfile.ubuntu-xenial
│ │ │ ├── Dockerfile.ubuntu-bionic
│ │ │ ├── Dockerfile.debian-stretch
│ │ │ ├── Dockerfile.debian-jessie
│ │ │ ├── Dockerfile.ubuntu-trusty
│ │ │ ├── Dockerfile.fedora-24
│ │ │ ├── Dockerfile.fedora-25
│ │ │ ├── Dockerfile.fedora-26
│ │ │ ├── Dockerfile.fedora-27
│ │ │ ├── Dockerfile.fedora-28
│ │ │ ├── Dockerfile.fedora-29
│ │ │ └── Dockerfile.centos-7
│ │ ├── vars
│ │ │ └── main.yml
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── meta
│ │ │ ├── .galaxy_install_info
│ │ │ └── main.yml
│ │ ├── setup_travis_tests.sh
│ │ ├── defaults
│ │ │ └── main.yml
│ │ └── tasks
│ │ │ └── main.yml
│ ├── ansible-phpipam
│ │ ├── tests
│ │ │ ├── inventory
│ │ │ ├── .ansible-lint
│ │ │ ├── Dockerfile.ubuntu-xenial
│ │ │ ├── Dockerfile.debian-stretch
│ │ │ ├── Dockerfile.ubuntu-bionic
│ │ │ ├── Dockerfile.debian-jessie
│ │ │ ├── Dockerfile.ubuntu-trusty
│ │ │ ├── Dockerfile.fedora-24
│ │ │ ├── Dockerfile.fedora-25
│ │ │ ├── Dockerfile.fedora-26
│ │ │ └── Dockerfile.centos-7
│ │ ├── vars
│ │ │ └── main.yml
│ │ ├── meta
│ │ │ ├── .galaxy_install_info
│ │ │ └── main.yml
│ │ ├── files
│ │ │ ├── phpipam-0.8.tar
│ │ │ ├── phpipam-0.9.tar
│ │ │ ├── phpipam-1.0.tar
│ │ │ ├── phpipam-1.1.tar
│ │ │ ├── phpipam-1.2.tar
│ │ │ ├── phpipam-1.2.1.tar
│ │ │ └── phpipam-1.1.010.tar
│ │ ├── requirements.yml
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── tasks
│ │ │ ├── upgrade.yml
│ │ │ ├── redhat.yml
│ │ │ ├── main.yml
│ │ │ ├── backups.yml
│ │ │ └── config_apache2.yml
│ │ ├── templates
│ │ │ ├── htaccess.j2
│ │ │ ├── etc
│ │ │ │ └── apache2
│ │ │ │ │ └── sites-available
│ │ │ │ │ └── 000-default.conf.j2
│ │ │ └── archive
│ │ │ │ ├── config.php-1.1.j2
│ │ │ │ └── config.php-1.1.010.j2
│ │ ├── setup_travis_tests.sh
│ │ └── LICENSE
│ ├── ansible-timezone
│ │ ├── tests
│ │ │ ├── inventory
│ │ │ └── test.yml
│ │ ├── templates
│ │ │ └── timezone.j2
│ │ ├── vars
│ │ │ └── main.yml
│ │ ├── meta
│ │ │ └── .galaxy_install_info
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── defaults
│ │ │ └── main.yml
│ │ ├── tasks
│ │ │ └── main.yml
│ │ ├── .travis.yml
│ │ └── README.md
│ ├── ansible-powerdns-recursor
│ │ ├── tests
│ │ │ ├── inventory
│ │ │ ├── .ansible-lint
│ │ │ ├── test.yml
│ │ │ ├── Dockerfile.ubuntu-xenial
│ │ │ ├── Dockerfile.debian-stretch
│ │ │ ├── Dockerfile.ubuntu-bionic
│ │ │ ├── Dockerfile.debian-jessie
│ │ │ ├── Dockerfile.ubuntu-trusty
│ │ │ ├── Dockerfile.fedora-24
│ │ │ ├── Dockerfile.fedora-25
│ │ │ ├── Dockerfile.fedora-26
│ │ │ └── Dockerfile.centos-7
│ │ ├── vars
│ │ │ └── main.yml
│ │ ├── meta
│ │ │ ├── .galaxy_install_info
│ │ │ └── main.yml
│ │ ├── requirements.yml
│ │ ├── templates
│ │ │ ├── pdns_repo.j2
│ │ │ └── etc
│ │ │ │ ├── resolv.conf.j2
│ │ │ │ └── powerdns
│ │ │ │ └── recursor.conf.j2
│ │ ├── playbook.yml
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── tasks
│ │ │ ├── main.yml
│ │ │ └── pdns_accounts.yml
│ │ ├── setup_travis_tests.sh
│ │ ├── README.md
│ │ └── CHANGELOG.md
│ └── ansible-powerdns-authoritative
│ │ ├── tests
│ │ ├── inventory
│ │ ├── .ansible-lint
│ │ ├── Dockerfile.ubuntu-xenial
│ │ ├── Dockerfile.debian-stretch
│ │ ├── Dockerfile.ubuntu-bionic
│ │ ├── Dockerfile.debian-jessie
│ │ ├── Dockerfile.ubuntu-trusty
│ │ ├── Dockerfile.fedora-24
│ │ ├── Dockerfile.fedora-25
│ │ ├── Dockerfile.fedora-26
│ │ └── Dockerfile.centos-7
│ │ ├── vars
│ │ └── main.yml
│ │ ├── meta
│ │ ├── .galaxy_install_info
│ │ └── main.yml
│ │ ├── templates
│ │ ├── pdns_repo.j2
│ │ ├── pdns_zones.j2
│ │ ├── pdns.local.gmysql.conf.j2
│ │ ├── dns_check.sh.j2
│ │ ├── etc
│ │ │ └── resolv.conf.j2
│ │ └── pdns_records.sh.j2
│ │ ├── requirements.yml
│ │ ├── tasks
│ │ ├── create_zones.yml
│ │ ├── pdns_accounts.yml
│ │ ├── cron.yml
│ │ └── main.yml
│ │ ├── handlers
│ │ └── main.yml
│ │ ├── setup_travis_tests.sh
│ │ └── LICENSE
├── ansible.cfg
├── hosts
├── cleanup.sh
├── requirements.yml
└── bootstrap.sh
├── requirements.txt
├── .gitignore
├── examples
├── delete_records.csv
├── slave_zones.csv
├── master_zones.csv
└── add_records.csv
├── requirements-dev.txt
├── .github
└── stale.yml
└── LICENSE
/Vagrant/roles/ansible-mysql/files/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/files/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/requirements.yml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/templates/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/.gitignore:
--------------------------------------------------------------------------------
1 | venv/
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/requirements.yml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/templates/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/files/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/requirements.yml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/templates/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/.gitignore:
--------------------------------------------------------------------------------
1 | venv/
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/files/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/.gitignore:
--------------------------------------------------------------------------------
1 | venv/
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/requirements.yml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/templates/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/inventory:
--------------------------------------------------------------------------------
1 | localhost
2 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | ansible==8.5.0
2 | requests==2.31.0
3 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.retry
2 | .vagrant/
3 | host_vars/
4 | venv/
5 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/.gitignore:
--------------------------------------------------------------------------------
1 | venv/
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/inventory:
--------------------------------------------------------------------------------
1 | localhost
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/.ansible-lint:
--------------------------------------------------------------------------------
1 | skip_list: []
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tests/inventory:
--------------------------------------------------------------------------------
1 | localhost
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-timezone/tests/inventory:
--------------------------------------------------------------------------------
1 | localhost
2 |
--------------------------------------------------------------------------------
/Vagrant/ansible.cfg:
--------------------------------------------------------------------------------
1 | [defaults]
2 | host_key_checking = False
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/.ansible-lint:
--------------------------------------------------------------------------------
1 | skip_list: []
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/inventory:
--------------------------------------------------------------------------------
1 | localhost
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-timezone/templates/timezone.j2:
--------------------------------------------------------------------------------
1 | {{ timezone }}
2 |
--------------------------------------------------------------------------------
/Vagrant/hosts:
--------------------------------------------------------------------------------
1 | .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tests/inventory:
--------------------------------------------------------------------------------
1 | localhost
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/vars/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # vars file for ansible-mysql
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/vars/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # vars file for ansible-ntp
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/requirements-dev.txt:
--------------------------------------------------------------------------------
1 | # Python requirements for development
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/vars/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # vars file for ansible-apache2
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/CONTRIBUTORS.md:
--------------------------------------------------------------------------------
1 | Larry Smith Jr. - mrlesmithjr@gmail.com
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/requirements-dev.txt:
--------------------------------------------------------------------------------
1 | # Python requirements for development
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/vars/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # vars file for ansible-phpipam
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/requirements-dev.txt:
--------------------------------------------------------------------------------
1 | # Python requirements for development
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/vars/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # vars file for ansible-rsyslog
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/CONTRIBUTORS.md:
--------------------------------------------------------------------------------
1 | Larry Smith Jr. - mrlesmithjr@gmail.com
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/vars/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # vars file for ansible-etc-hosts
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/CONTRIBUTORS.md:
--------------------------------------------------------------------------------
1 | Larry Smith Jr. - mrlesmithjr@gmail.com
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-timezone/vars/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # vars file for ansible-timezone
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/CONTRIBUTORS.md:
--------------------------------------------------------------------------------
1 | Larry Smith Jr. - mrlesmithjr@gmail.com
2 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/requirements-dev.txt:
--------------------------------------------------------------------------------
1 | # Python requirements for development
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tests/.ansible-lint:
--------------------------------------------------------------------------------
1 | skip_list:
2 | - "204"
3 | - ANSIBLE0016
4 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/handlers/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # handlers file for ansible-etc-hosts
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/vars/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # vars file for ansible-powerdns
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/vars/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # vars file for ansible-bootstrap-python
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/vars/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # vars file for ansible-powerdns-recursor
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/defaults/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # defaults file for ansible-bootstrap-python
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/handlers/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # handlers file for ansible-bootstrap-python
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/meta/.galaxy_install_info:
--------------------------------------------------------------------------------
1 | install_date: Tue Feb 25 21:42:26 2020
2 | version: ''
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/meta/.galaxy_install_info:
--------------------------------------------------------------------------------
1 | install_date: Tue Feb 25 21:42:27 2020
2 | version: ''
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/meta/.galaxy_install_info:
--------------------------------------------------------------------------------
1 | install_date: Tue Feb 25 21:42:25 2020
2 | version: ''
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/meta/.galaxy_install_info:
--------------------------------------------------------------------------------
1 | install_date: Tue Feb 25 21:42:26 2020
2 | version: ''
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/templates/etc/mysql/conf.d/client.cnf.j2:
--------------------------------------------------------------------------------
1 | [client]
2 | default-character-set = utf8
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/meta/.galaxy_install_info:
--------------------------------------------------------------------------------
1 | install_date: Tue Feb 25 21:42:28 2020
2 | version: ''
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/.ansible-lint:
--------------------------------------------------------------------------------
1 | skip_list:
2 | - ANSIBLE0006
3 | - ANSIBLE0016
4 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/meta/.galaxy_install_info:
--------------------------------------------------------------------------------
1 | install_date: Tue Feb 25 21:42:30 2020
2 | version: ''
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-timezone/meta/.galaxy_install_info:
--------------------------------------------------------------------------------
1 | install_date: Tue Feb 25 21:42:30 2020
2 | version: ''
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/meta/.galaxy_install_info:
--------------------------------------------------------------------------------
1 | install_date: Tue Feb 25 21:42:26 2020
2 | version: ''
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/meta/.galaxy_install_info:
--------------------------------------------------------------------------------
1 | install_date: Tue Feb 25 21:42:29 2020
2 | version: ''
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/test.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: localhost
3 | connection: local
4 | roles:
5 | - ansible-ntp
6 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/meta/.galaxy_install_info:
--------------------------------------------------------------------------------
1 | install_date: Tue Feb 25 21:42:29 2020
2 | version: ''
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/requirements.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - src: https://github.com/mrlesmithjr/ansible-powerdns-recursor.git
3 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/templates/pdns_repo.j2:
--------------------------------------------------------------------------------
1 | Package: pdns-*
2 | Pin: origin repo.powerdns.com
3 | Pin-Priority: 600
4 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/playbook.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: Example Playbook
3 | hosts: all
4 | roles:
5 | - role: ansible-apache2
6 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/test.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: localhost
3 | connection: local
4 | roles:
5 | - ansible-etc-hosts
6 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/templates/root/my.cnf.j2:
--------------------------------------------------------------------------------
1 | # {{ ansible_managed }}
2 | [client]
3 | user=root
4 | password={{ mysql_root_password }}
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/templates/pdns_repo.j2:
--------------------------------------------------------------------------------
1 | Package: pdns-*
2 | Pin: origin repo.powerdns.com
3 | Pin-Priority: 600
4 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tests/.ansible-lint:
--------------------------------------------------------------------------------
1 | skip_list:
2 | - "204"
3 | - ANSIBLE0006
4 | - ANSIBLE0013
5 | - ANSIBLE0016
6 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/requirements.txt:
--------------------------------------------------------------------------------
1 | # Python requirements for executing
2 | ansible
3 | ansible-lint
4 | docker
5 | flake8
6 | molecule
7 | testinfra
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/test.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: localhost
3 | connection: local
4 | roles:
5 | - ansible-powerdns-recursor
6 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/requirements.txt:
--------------------------------------------------------------------------------
1 | # Python requirements for executing
2 | ansible
3 | ansible-lint
4 | docker
5 | flake8
6 | molecule
7 | testinfra
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/playbook.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: Example Playbook
3 | hosts: all
4 | roles:
5 | - role: ansible-bootstrap-python
6 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/requirements.txt:
--------------------------------------------------------------------------------
1 | # Python requirements for executing
2 | ansible
3 | ansible-lint
4 | docker
5 | flake8
6 | molecule
7 | testinfra
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/requirements.txt:
--------------------------------------------------------------------------------
1 | # Python requirements for executing
2 | ansible
3 | ansible-lint
4 | docker
5 | flake8
6 | molecule
7 | testinfra
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/files/phpipam-0.8.tar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mrlesmithjr/python-powerdns-management/HEAD/Vagrant/roles/ansible-phpipam/files/phpipam-0.8.tar
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/files/phpipam-0.9.tar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mrlesmithjr/python-powerdns-management/HEAD/Vagrant/roles/ansible-phpipam/files/phpipam-0.9.tar
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/files/phpipam-1.0.tar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mrlesmithjr/python-powerdns-management/HEAD/Vagrant/roles/ansible-phpipam/files/phpipam-1.0.tar
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/files/phpipam-1.1.tar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mrlesmithjr/python-powerdns-management/HEAD/Vagrant/roles/ansible-phpipam/files/phpipam-1.1.tar
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/files/phpipam-1.2.tar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mrlesmithjr/python-powerdns-management/HEAD/Vagrant/roles/ansible-phpipam/files/phpipam-1.2.tar
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/files/phpipam-1.2.1.tar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mrlesmithjr/python-powerdns-management/HEAD/Vagrant/roles/ansible-phpipam/files/phpipam-1.2.1.tar
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/files/phpipam-1.1.010.tar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mrlesmithjr/python-powerdns-management/HEAD/Vagrant/roles/ansible-phpipam/files/phpipam-1.1.010.tar
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-timezone/handlers/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # handlers file for ansible-timezone
3 | - name: update tzdata
4 | command: "dpkg-reconfigure --frontend noninteractive tzdata"
5 |
--------------------------------------------------------------------------------
/examples/delete_records.csv:
--------------------------------------------------------------------------------
1 | name,zone,record_type
2 | node100,test.vagrant.local,A
3 | node101,test.vagrant.local,A
4 | node202,dev.vagrant.local,A
5 | node203,dev.vagrant.local,CNAME
6 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-timezone/tests/test.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: localhost
3 | connection: local
4 | remote_user: root
5 | vars:
6 | roles:
7 | - role: ansible-timezone
8 | tasks:
9 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/playbook.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: Example Playbook
3 | hosts: all
4 | tasks:
5 | - name: "Include ansible-mysql"
6 | include_role:
7 | name: "ansible-mysql"
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/playbook.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - hosts: pdns
3 | vars:
4 | pri_domain_name: 'test.vagrant.local'
5 | roles:
6 | - role: ansible-powerdns-recursor
7 | tasks:
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/handlers/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # handlers file for ansible-rsyslog
3 | - name: restart rsyslog
4 | service:
5 | name: rsyslog
6 | state: restarted
7 | become: true
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/playbook.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: Example Playbook
3 | hosts: all
4 | tasks:
5 | - name: Include ansible-rsyslog
6 | include_role:
7 | name: ansible-rsyslog
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/shared/converge.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: Converge
3 | hosts: all
4 | tasks:
5 | - name: "Include ansible-mysql"
6 | include_role:
7 | name: "ansible-mysql"
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/shared/converge.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: Converge
3 | hosts: all
4 | tasks:
5 | - name: Include ansible-rsyslog
6 | include_role:
7 | name: ansible-rsyslog
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/shared/converge.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: Converge
3 | hosts: all
4 | tasks:
5 | - name: "Include ansible-apache2"
6 | include_role:
7 | name: "ansible-apache2"
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/tasks/dbs.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: dbs | Managing Databases
3 | mysql_db:
4 | name: "{{ item['name'] }}"
5 | state: "{{ item['state'] }}"
6 | become: true
7 | loop: "{{ mysql_dbs }}"
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # tasks file for ansible-rsyslog
3 | - include: debian.yml
4 | when: ansible_os_family == "Debian"
5 |
6 | - include: redhat.yml
7 | when: ansible_os_family == "RedHat"
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/handlers/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # handlers file for ansible-powerdns-recursor
3 | - name: restart pdns_recursor
4 | service:
5 | name: pdns-recursor
6 | state: restarted
7 | become: true
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/shared/converge.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: Converge
3 | hosts: all
4 | tasks:
5 | - name: "Include ansible-bootstrap-python"
6 | include_role:
7 | name: "ansible-bootstrap-python"
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/requirements.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - src: https://github.com/mrlesmithjr/ansible-apache2.git
3 | - src: https://github.com/mrlesmithjr/ansible-mariadb-mysql.git
4 | - src: https://github.com/mrlesmithjr/ansible-phpipam.git
5 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/centos7/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/centos8/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/debian8/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/debian9/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/fedora/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/shared/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/centos7/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/centos8/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/debian10/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/debian8/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/debian9/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/fedora/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/shared/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/centos7/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/centos8/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/debian8/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/debian9/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/fedora/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/shared/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/debian10/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/ubuntu1604/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/ubuntu1804/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/ubuntu1604/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/ubuntu1804/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/debian10/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/ubuntu1604/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/ubuntu1804/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/centos7/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/centos8/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/debian10/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/debian8/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/debian9/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/fedora/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/shared/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/ubuntu1604/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/ubuntu1804/verify.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # This is an example playbook to execute Ansible tests.
3 |
4 | - name: Verify
5 | hosts: all
6 | tasks:
7 | - name: Example assertion
8 | assert:
9 | that: true
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/tasks/debian.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: debian | Installing Python Packages
3 | apt:
4 | name: "{{ bootstrap_python_packages }}"
5 | state: present
6 | become: true
7 | register: result
8 | until: result is successful
9 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/requirements.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - src: https://github.com/mrlesmithjr/ansible-mysql.git
3 | - src: https://github.com/mrlesmithjr/ansible-mariadb-galera-cluster.git
4 | - src: https://github.com/mrlesmithjr/ansible-powerdns-authoritative.git
5 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-timezone/defaults/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # defaults file for ansible-timezone
3 |
4 | # set your desired default timezone
5 |
6 | # timezone: 'EST5EDT'
7 | # timezone: 'America/New_York'
8 | timezone: 'UTC'
9 |
10 | timezone_update_hardware_clock: false
11 |
--------------------------------------------------------------------------------
/Vagrant/cleanup.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | vagrant destroy -f
3 | for file in *.retry; do
4 | if [[ -f $file ]]; then
5 | rm $file
6 | fi
7 | done
8 | if [ -d host_vars ]; then
9 | rm -rf host_vars
10 | fi
11 | if [ -d .vagrant ]; then
12 | rm -rf .vagrant
13 | fi
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # tasks file for ansible-ntp
3 | - include: debian.yml
4 | tags:
5 | - config_ntp
6 | when: ansible_os_family == "Debian"
7 |
8 | - include: redhat.yml
9 | tags:
10 | - config_ntp
11 | when: ansible_os_family == "RedHat"
12 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tasks/create_zones.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: create_zones | adding dns zones
3 | template:
4 | src: pdns_zones.sh.j2
5 | dest: /tmp/pdns_zones.sh
6 | mode: 0774
7 |
8 | - name: create_zones | configuring zones
9 | command: /tmp/pdns_zones.sh
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # tasks file for ansible-powerdns-recursor
3 |
4 | - include: pdns_accounts.yml
5 |
6 | - include: systemd_resolved.yml
7 | when: >
8 | ansible_service_mgr == "systemd" and
9 | pdns_recursor_systemd_resolved_disable
10 |
11 | - include: pdns_recursor.yml
12 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/templates/pdns_zones.j2:
--------------------------------------------------------------------------------
1 | {
2 | "name":"{{ item }}",
3 | "kind":"{{ pdns_auth_zone_types }}",
4 | "masters": [],
5 | {% if pdns_auth_config_soa_edit_api %}
6 | "soa_edit_api": "{{ pdns_auth_soa_edit_api }}",
7 | {% endif %}
8 | "nameservers": ["{{ pdns_auth_nameservers|join (', ') }}"]
9 | }
10 |
--------------------------------------------------------------------------------
/examples/slave_zones.csv:
--------------------------------------------------------------------------------
1 | zone,zoneType,masters,nameservers
2 | 128.28.172.in-addr.arpa,SLAVE,"192.168.202.200",
3 | 202.168.192.in-addr.arpa,SLAVE,"192.168.202.200",
4 | dev.vagrant.local,SLAVE,"192.168.202.200",
5 | prod.vagrant.local,SLAVE,"192.168.202.200",
6 | test.vagrant.local,SLAVE,"192.168.202.200",
7 | vagrant.local,SLAVE,"192.168.202.200",
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/templates/etc/apache2/conf.d/default.conf.j2:
--------------------------------------------------------------------------------
1 | Timeout 60
2 | KeepAlive On
3 | MaxKeepAliveRequests 100
4 | KeepAliveTimeout 5
5 | UseCanonicalName Off
6 | AccessFileName .htaccess
7 | HostnameLookups Off
8 |
9 | RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
10 |
11 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/templates/pdns.local.gmysql.conf.j2:
--------------------------------------------------------------------------------
1 | # MySQL Configuration
2 | #
3 | # Launch gmysql backend
4 | launch=gmysql
5 |
6 | # gmysql parameters
7 | gmysql-host={{ pdns_auth_db_host }}
8 | gmysql-dbname={{ pdns_auth_db_name }}
9 | gmysql-user={{ pdns_auth_db_user }}
10 | gmysql-password={{ pdns_auth_db_pass }}
11 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/handlers/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # handlers file for ansible-ntp
3 | - name: restart ntp
4 | service:
5 | name: ntp
6 | state: restarted
7 | become: true
8 | when: not ansible_check_mode
9 |
10 | - name: restart ntpd
11 | service:
12 | name: ntpd
13 | state: restarted
14 | become: true
15 | when: not ansible_check_mode
16 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/handlers/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # handlers file for ansible-powerdns-authoritative
3 | - name: restart pdns
4 | service:
5 | name: "pdns"
6 | state: "restarted"
7 | sleep: 10
8 | become: true
9 |
10 | - name: restart mysql
11 | service:
12 | name: "mysql"
13 | state: "restarted"
14 | become: true
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/templates/dns_check.sh.j2:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | DNSUP=`/usr/bin/dig @{{ ansible_default_ipv4.address }} localhost. A +short`
4 | if [ "$DNSUP" != "127.0.0.1" ];
5 | then
6 | echo "Stopping Anycast...."
7 | /etc/init.d/quagga stop
8 | /etc/init.d/pdns stop
9 | else
10 | echo "Everything's good... Do nothing..."
11 | fi
12 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/handlers/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # handlers file for ansible-mysql
3 | - name: restart mariadb
4 | service:
5 | name: mariadb
6 | state: restarted
7 | become: true
8 | when: not ansible_check_mode
9 |
10 | - name: restart mysql
11 | service:
12 | name: mysql
13 | state: restarted
14 | become: true
15 | when: not ansible_check_mode
16 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/templates/etc/resolv.conf.j2:
--------------------------------------------------------------------------------
1 | {{ ansible_managed|comment }}
2 | search {{ pdns_auth_pri_domain_name }}
3 | {% if pdns_auth_resolv_conf_nameservers is defined %}
4 | {% for nameserver in pdns_auth_resolv_conf_nameservers %}
5 | nameserver {{ nameserver }}
6 | {% endfor %}
7 | {% else %}
8 | nameserver 8.8.8.8
9 | nameserver 8.8.4.4
10 | {% endif %}
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/templates/etc/resolv.conf.j2:
--------------------------------------------------------------------------------
1 | {{ ansible_managed|comment }}
2 | search {{ pdns_recursor_pri_domain_name }}
3 | {% if pdns_recursor_resolv_conf_nameservers is defined %}
4 | {% for nameserver in pdns_recursor_resolv_conf_nameservers %}
5 | nameserver {{ nameserver }}
6 | {% endfor %}
7 | {% else %}
8 | nameserver 8.8.8.8
9 | nameserver 8.8.4.4
10 | {% endif %}
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/tasks/opensuse.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: opensuse | Installing Apache
3 | zypper:
4 | name: apache2
5 | state: present
6 | register: result
7 | until: result is successful
8 | become: true
9 |
10 | - name: opensuse | Ensuring Apache Is Enabled And Started
11 | service:
12 | name: apache2
13 | state: started
14 | enabled: true
15 | become: true
16 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/tasks/alpine.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: alpine | Installing Apache2
3 | apk:
4 | name: apache2
5 | state: present
6 | become: true
7 | register: result
8 | until: result is successful
9 |
10 | - name: alpine | Ensuring Apache2 Service Is Started And Enabled On Boot
11 | service:
12 | name: apache2
13 | state: started
14 | enabled: true
15 | become: true
16 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tasks/pdns_accounts.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: pdns_accounts | creating pdns group
3 | group:
4 | name: pdns
5 | state: present
6 | become: true
7 |
8 | - name: pdns_accounts | creating pdns user
9 | user:
10 | name: pdns
11 | group: pdns
12 | system: true
13 | home: /var/spool/powerdns
14 | shell: /bin/false
15 | state: present
16 | become: true
17 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tasks/pdns_accounts.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: pdns_accounts | creating pdns group
3 | group:
4 | name: pdns
5 | state: present
6 | become: true
7 |
8 | - name: pdns_accounts | creating pdns user
9 | user:
10 | name: pdns
11 | group: pdns
12 | system: true
13 | home: /var/spool/powerdns
14 | shell: /bin/false
15 | state: present
16 | become: true
17 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/handlers/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # handlers file for ansible-phpipam
3 | - name: restart apache2
4 | service:
5 | name: apache2
6 | state: restarted
7 | become: true
8 |
9 | - name: restart httpd
10 | service:
11 | name: httpd
12 | state: restarted
13 | become: true
14 |
15 | - name: restart_php5-fpm
16 | service:
17 | name: php5-fpm
18 | state: restarted
19 | become: true
20 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # tasks file for ansible-bootstrap-python
3 | - include_tasks: set_facts.yml
4 |
5 | - include_tasks: debian.yml
6 | when: ansible_os_family == "Debian"
7 |
8 | - include_tasks: redhat.yml
9 | when: ansible_os_family == "RedHat"
10 |
11 | # We do this to rediscover Python interpreter, etc.
12 | - name: Rediscover Facts
13 | setup:
14 | gather_subset:
15 | - all
16 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/handlers/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # handlers file for ansible-apache2
3 | - name: restart apache2
4 | service:
5 | name: "apache2"
6 | state: "restarted"
7 | become: true
8 |
9 | - name: reload apache2
10 | service:
11 | name: "apache2"
12 | state: "reloaded"
13 | become: true
14 |
15 | - name: "restart httpd"
16 | service:
17 | name: "httpd"
18 | state: "restarted"
19 | become: true
20 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tasks/cron.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: cron | creating cron script
3 | template:
4 | src: dns_check.sh.j2
5 | dest: /etc/cron.d/dns_check.sh
6 | owner: root
7 | group: root
8 | mode: 0774
9 | become: true
10 |
11 | - name: cron | creating cron job
12 | cron:
13 | name: dns check
14 | minute: "*/5"
15 | job: /etc/cron.d/dns_check.sh
16 | state: present
17 | become: true
18 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to ansible-mysql
2 |
3 | ## Table Of Contents
4 |
5 | [Code of Conduct](#code-of-conduct)
6 |
7 | ## Code of Conduct
8 |
9 | This project and everyone participating in it is governed by the [ansible-mysql Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [mrlesmithjr@gmail.com](mailto:mrlesmithjr@gmail.com).
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tasks/debian.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: debian | installing packages
3 | apt:
4 | name: ["ntp"]
5 | state: present
6 | become: true
7 | register: result
8 | until: result is successful
9 |
10 | - name: debian | configuring ntp
11 | template:
12 | src: etc/ntp.conf.j2
13 | dest: /etc/ntp.conf
14 | owner: root
15 | group: root
16 | mode: u=rw,g=r,o=r
17 | notify: restart ntp
18 | become: true
19 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to ansible-apache2
2 |
3 | ## Table Of Contents
4 |
5 | [Code of Conduct](#code-of-conduct)
6 |
7 | ## Code of Conduct
8 |
9 | This project and everyone participating in it is governed by the [ansible-apache2 Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [mrlesmithjr@gmail.com](mailto:mrlesmithjr@gmail.com).
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/tasks/mysql_root_pw.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: mysql_root_pw | setting MySQL root password
3 | debconf:
4 | name: "{{ mysql_package }}"
5 | question: "{{ item }}"
6 | value: "{{ mysql_root_password }}"
7 | vtype: password
8 | changed_when: false
9 | no_log: true
10 | become: true
11 | loop:
12 | - mysql-server/root_password
13 | - mysql-server/root_password_again
14 | when: ansible_os_family == "Debian"
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to ansible-rsyslog
2 |
3 | ## Table Of Contents
4 |
5 | [Code of Conduct](#code-of-conduct)
6 |
7 | ## Code of Conduct
8 |
9 | This project and everyone participating in it is governed by the [ansible-rsyslog Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [mrlesmithjr@gmail.com](mailto:mrlesmithjr@gmail.com).
10 |
--------------------------------------------------------------------------------
/requirements-dev.txt:
--------------------------------------------------------------------------------
1 | ansible==8.5.0
2 | astroid==2.3.3
3 | autopep8==1.5
4 | certifi==2019.11.28
5 | cffi==1.14.0
6 | chardet==3.0.4
7 | cryptography==42.0.2
8 | idna==2.9
9 | isort==4.3.21
10 | Jinja2==3.1.3
11 | lazy-object-proxy==1.4.3
12 | MarkupSafe==1.1.1
13 | mccabe==0.6.1
14 | pycodestyle==2.5.0
15 | pycparser==2.19
16 | pylint==2.4.4
17 | PyYAML==5.3
18 | requests==2.31.0
19 | six==1.14.0
20 | typed-ast==1.4.1
21 | urllib3==1.26.18
22 | wrapt==1.11.2
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/templates/etc/apache2/ports.conf.j2:
--------------------------------------------------------------------------------
1 | # If you just change the port or add more ports here, you will likely also
2 | # have to change the VirtualHost statement in
3 | # /etc/apache2/sites-enabled/000-default.conf
4 |
5 | Listen {{ apache2_default_port }}
6 |
7 |
8 | Listen 443
9 |
10 |
11 |
12 | Listen 443
13 |
14 |
15 | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
16 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tasks/upgrade.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: upgrade | checking if {{ phpipam_install_dir }} exists
3 | stat:
4 | path: "{{ phpipam_install_dir }}"
5 | register: phpipam_install_dir_check
6 |
7 | - name: upgrade | moving {{ phpipam_install_dir }} directory to {{ phpipam_install_dir }}.{{ date }}
8 | command: "mv {{ phpipam_install_dir }} {{ phpipam_install_dir }}.{{ date }}"
9 | become: true
10 | when: phpipam_install_dir_check.stat.exists
11 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.ubuntu-xenial:
--------------------------------------------------------------------------------
1 | FROM ubuntu:xenial
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to ansible-bootstrap-python
2 |
3 | ## Table Of Contents
4 |
5 | [Code of Conduct](#code-of-conduct)
6 |
7 | ## Code of Conduct
8 |
9 | This project and everyone participating in it is governed by the [ansible-bootstrap-python Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [mrlesmithjr@gmail.com](mailto:mrlesmithjr@gmail.com).
10 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/tasks/debian.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - include_tasks: mysql_root_pw.yml
3 |
4 | - name: debian | installing pre-reqs
5 | apt:
6 | name: "{{ mysql_pre_req_packages }}"
7 | state: present
8 | become: true
9 | register: result
10 | until: result is successful
11 |
12 | - name: debian | installing mysql
13 | apt:
14 | name: "{{ mysql_package }}"
15 | state: present
16 | become: true
17 | register: result
18 | until: result is successful
19 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tests/Dockerfile.ubuntu-xenial:
--------------------------------------------------------------------------------
1 | FROM ubuntu:xenial
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/meta/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | galaxy_info:
3 | author: Larry Smith Jr.
4 | description: Ansible role to bootstrap hosts with Python installs
5 | license: MIT
6 | min_ansible_version: 2.8
7 |
8 | platforms:
9 | - name: Debian
10 | versions:
11 | - all
12 | - name: EL
13 | versions:
14 | - all
15 | - name: Ubuntu
16 | versions: all
17 |
18 | galaxy_tags:
19 | - python
20 |
21 | dependencies: []
22 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.ubuntu-xenial:
--------------------------------------------------------------------------------
1 | FROM ubuntu:xenial
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.debian-stretch:
--------------------------------------------------------------------------------
1 | FROM debian:stretch
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv systemd && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.ubuntu-bionic:
--------------------------------------------------------------------------------
1 | FROM ubuntu:bionic
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv systemd && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.ubuntu-bionic:
--------------------------------------------------------------------------------
1 | FROM ubuntu:bionic
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv systemd && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/templates/htaccess.j2:
--------------------------------------------------------------------------------
1 |
2 |
3 | # Enable rewrite engine
4 | RewriteEngine on
5 |
6 | # change rewrite base if not in root
7 | # RewriteBase /
8 | RewriteBase {{ phpipam_base }}
9 |
10 | # Passthroughs
11 | RewriteRule ^(css|js|app|test)/.*$ - [L,QSA]
12 |
13 | # Rewrites
14 | RewriteRule ^index\.php$ - [L]
15 | RewriteCond %{REQUEST_FILENAME} !-d
16 | RewriteCond %{REQUEST_FILENAME} !-f
17 | RewriteRule ^ index.php [L]
18 |
19 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tests/Dockerfile.debian-stretch:
--------------------------------------------------------------------------------
1 | FROM debian:stretch
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv systemd && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tests/Dockerfile.ubuntu-bionic:
--------------------------------------------------------------------------------
1 | FROM ubuntu:bionic
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv systemd && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/Dockerfile.ubuntu-xenial:
--------------------------------------------------------------------------------
1 | FROM ubuntu:xenial
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.debian-stretch:
--------------------------------------------------------------------------------
1 | FROM debian:stretch
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv systemd && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/setup_travis_tests.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | TAR_FILE="v1.6.1.tar.gz"
4 |
5 | # Prompt for Ansible role name
6 | read -p "Enter the Ansible role name: " input
7 |
8 | # Update .travis.yml with Ansible role name
9 | sed -i '' "s/replace_role/${input}/g" ".travis.yml"
10 |
11 | # Update tests/test.yml with Ansible role name
12 | sed -i '' "s/replace_role/${input}/g" "tests/test.yml"
13 |
14 | # Cleanup
15 | if [ -f $TAR_FILE ]; then
16 | rm $TAR_FILE
17 | fi
18 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tasks/redhat.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: redhat | installing pre-req packages
3 | yum:
4 | name: "{{ phpipam_redhat_packages }}"
5 | state: present
6 | become: true
7 | register: result
8 | until: result is succeeded
9 | when: ansible_distribution != "Fedora"
10 |
11 | - name: redhat | setting php timezone
12 | lineinfile:
13 | dest: /etc/php.ini
14 | line: "date.timezone = {{ phpipam_timezone }}"
15 | become: true
16 | notify: restart httpd
17 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tests/Dockerfile.ubuntu-xenial:
--------------------------------------------------------------------------------
1 | FROM ubuntu:xenial
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/Dockerfile.debian-stretch:
--------------------------------------------------------------------------------
1 | FROM debian:stretch
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv systemd && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/Dockerfile.ubuntu-bionic:
--------------------------------------------------------------------------------
1 | FROM ubuntu:bionic
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv systemd && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tests/Dockerfile.debian-stretch:
--------------------------------------------------------------------------------
1 | FROM debian:stretch
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv systemd && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tests/Dockerfile.ubuntu-bionic:
--------------------------------------------------------------------------------
1 | FROM ubuntu:bionic
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv systemd && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install enum34 ipaddress wheel && \
11 | pip install ansible ansible-lint
12 |
13 | COPY .ansible-lint /
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/setup_travis_tests.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | TAR_FILE="v1.6.1.tar.gz"
4 |
5 | # Prompt for Ansible role name
6 | read -p "Enter the Ansible role name: " input
7 |
8 | # Update .travis.yml with Ansible role name
9 | sed -i '' "s/replace_role/${input}/g" ".travis.yml"
10 |
11 | # Update tests/test.yml with Ansible role name
12 | sed -i '' "s/replace_role/${input}/g" "tests/test.yml"
13 |
14 | # Cleanup
15 | if [ -f $TAR_FILE ]; then
16 | rm $TAR_FILE
17 | fi
18 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/meta/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | galaxy_info:
3 | author: Larry Smith Jr.
4 | description: Ansible role to install/configure rsyslog
5 |
6 | license: MIT
7 | min_ansible_version: 2.8
8 |
9 | platforms:
10 | - name: EL
11 | versions:
12 | - all
13 | - name: Ubuntu
14 | versions:
15 | - all
16 | - name: Debian
17 | versions:
18 | - all
19 |
20 | categories:
21 | - monitoring
22 | - system
23 |
24 | dependencies: []
25 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-timezone/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # tasks file for ansible-timezone
3 |
4 | - name: main | Setting Timezone
5 | timezone:
6 | name: "{{ timezone }}"
7 | tags:
8 | - configuration
9 | - timezone
10 | when: not timezone_update_hardware_clock
11 |
12 | - name: main | Setting Timezone And Hardware Clock
13 | timezone:
14 | name: "{{ timezone }}"
15 | hwclock: true
16 | tags:
17 | - configuration
18 | - timezone
19 | when: timezone_update_hardware_clock
20 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/setup_travis_tests.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | TAR_FILE="v1.6.1.tar.gz"
4 |
5 | # Prompt for Ansible role name
6 | read -p "Enter the Ansible role name: " input
7 |
8 | # Update .travis.yml with Ansible role name
9 | sed -i '' "s/replace_role/${input}/g" ".travis.yml"
10 |
11 | # Update tests/test.yml with Ansible role name
12 | sed -i '' "s/replace_role/${input}/g" "tests/test.yml"
13 |
14 | # Cleanup
15 | if [ -f $TAR_FILE ]; then
16 | rm $TAR_FILE
17 | fi
18 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.debian-jessie:
--------------------------------------------------------------------------------
1 | FROM debian:jessie
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install --upgrade pip setuptools && \
11 | pip install enum34 ipaddress wheel && \
12 | pip install ansible ansible-lint
13 |
14 | COPY .ansible-lint /
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.ubuntu-trusty:
--------------------------------------------------------------------------------
1 | FROM ubuntu:trusty
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install --upgrade pip setuptools && \
11 | pip install enum34 ipaddress wheel && \
12 | pip install ansible ansible-lint
13 |
14 | COPY .ansible-lint /
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tests/Dockerfile.debian-jessie:
--------------------------------------------------------------------------------
1 | FROM debian:jessie
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install --upgrade pip setuptools && \
11 | pip install enum34 ipaddress wheel && \
12 | pip install ansible ansible-lint
13 |
14 | COPY .ansible-lint /
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tests/Dockerfile.ubuntu-trusty:
--------------------------------------------------------------------------------
1 | FROM ubuntu:trusty
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install --upgrade pip setuptools && \
11 | pip install enum34 ipaddress wheel && \
12 | pip install ansible ansible-lint
13 |
14 | COPY .ansible-lint /
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.debian-jessie:
--------------------------------------------------------------------------------
1 | FROM debian:jessie
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install --upgrade pip setuptools && \
11 | pip install enum34 ipaddress wheel && \
12 | pip install ansible ansible-lint
13 |
14 | COPY .ansible-lint /
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.ubuntu-trusty:
--------------------------------------------------------------------------------
1 | FROM ubuntu:trusty
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install --upgrade pip setuptools && \
11 | pip install enum34 ipaddress wheel && \
12 | pip install ansible ansible-lint
13 |
14 | COPY .ansible-lint /
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/setup_travis_tests.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | TRAVIS_TEST_VER="v1.6.2"
3 |
4 | TAR_FILE="$TRAVIS_TEST_VER.tar.gz"
5 |
6 | # Prompt for Ansible role name
7 | read -r -p "Enter the Ansible role name: " input
8 |
9 | # Update .travis.yml with Ansible role name
10 | sed -i '' "s/replace_role/${input}/g" ".travis.yml"
11 |
12 | # Update tests/test.yml with Ansible role name
13 | sed -i '' "s/replace_role/${input}/g" "tests/test.yml"
14 |
15 | # Cleanup
16 | if [ -f $TAR_FILE ]; then
17 | rm $TAR_FILE
18 | fi
19 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/templates/etc/apache2/sites-available/000-default.conf.j2:
--------------------------------------------------------------------------------
1 |
2 | ServerName {{ ansible_fqdn }}
3 | ServerAdmin webmaster@localhost
4 | DocumentRoot {{ phpipam_web_root }}
5 |
6 | Options FollowSymLinks
7 | AllowOverride all
8 | Order allow,deny
9 | Allow from all
10 |
11 | ErrorLog ${APACHE_LOG_DIR}/error.log
12 | CustomLog ${APACHE_LOG_DIR}/access.log combined
13 |
14 |
--------------------------------------------------------------------------------
/examples/master_zones.csv:
--------------------------------------------------------------------------------
1 | zone,zoneType,masters,nameservers
2 | 128.28.172.in-addr.arpa,MASTER,,"192.168.202.200,192.168.202.201,192.168.202.202"
3 | 202.168.192.in-addr.arpa,MASTER,,"192.168.202.200,192.168.202.201,192.168.202.202"
4 | dev.vagrant.local,MASTER,,"192.168.202.200,192.168.202.201,192.168.202.202"
5 | prod.vagrant.local,MASTER,,"192.168.202.200,192.168.202.201,192.168.202.202"
6 | test.vagrant.local,MASTER,,"192.168.202.200,192.168.202.201,192.168.202.202"
7 | vagrant.local,MASTER,,"192.168.202.200,192.168.202.201,192.168.202.202"
8 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/setup_travis_tests.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | TRAVIS_TEST_VER="v1.6.2"
3 |
4 | TAR_FILE="$TRAVIS_TEST_VER.tar.gz"
5 |
6 | # Prompt for Ansible role name
7 | read -r -p "Enter the Ansible role name: " input
8 |
9 | # Update .travis.yml with Ansible role name
10 | sed -i '' "s/replace_role/${input}/g" ".travis.yml"
11 |
12 | # Update tests/test.yml with Ansible role name
13 | sed -i '' "s/replace_role/${input}/g" "tests/test.yml"
14 |
15 | # Cleanup
16 | if [ -f $TAR_FILE ]; then
17 | rm $TAR_FILE
18 | fi
19 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/Dockerfile.debian-jessie:
--------------------------------------------------------------------------------
1 | FROM debian:jessie
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install --upgrade pip setuptools && \
11 | pip install enum34 ipaddress wheel && \
12 | pip install ansible ansible-lint
13 |
14 | COPY .ansible-lint /
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/Dockerfile.ubuntu-trusty:
--------------------------------------------------------------------------------
1 | FROM ubuntu:trusty
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install --upgrade pip setuptools && \
11 | pip install enum34 ipaddress wheel && \
12 | pip install ansible ansible-lint
13 |
14 | COPY .ansible-lint /
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tests/Dockerfile.debian-jessie:
--------------------------------------------------------------------------------
1 | FROM debian:jessie
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install --upgrade pip setuptools && \
11 | pip install enum34 ipaddress wheel && \
12 | pip install ansible ansible-lint
13 |
14 | COPY .ansible-lint /
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tests/Dockerfile.ubuntu-trusty:
--------------------------------------------------------------------------------
1 | FROM ubuntu:trusty
2 | ENV container=docker
3 |
4 | RUN apt-get update && \
5 | apt-get install -y --no-install-recommends build-essential libffi-dev \
6 | libssl-dev python-dev python-minimal python-pip python-setuptools \
7 | python-virtualenv && \
8 | rm -rf /var/lib/apt/lists/*
9 |
10 | RUN pip install --upgrade pip setuptools && \
11 | pip install enum34 ipaddress wheel && \
12 | pip install ansible ansible-lint
13 |
14 | COPY .ansible-lint /
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/meta/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | galaxy_info:
3 | author: Larry Smith Jr.
4 | description: An Ansible role that configures /etc/hosts
5 | license: MIT
6 |
7 | min_ansible_version: 1.2
8 |
9 | platforms:
10 | - name: EL
11 | versions:
12 | - all
13 | - name: Fedora
14 | versions:
15 | - all
16 | - name: Ubuntu
17 | versions:
18 | - all
19 | - name: Debian
20 | versions:
21 | - all
22 |
23 | galaxy_tags:
24 | - system
25 |
26 | dependencies: []
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/tasks/debian.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: debian | updating apt cache
3 | apt:
4 | update_cache: true
5 | cache_valid_time: 3600
6 | become: true
7 | register: result
8 | until: result is successful
9 |
10 | - name: debian | installing apache2 package
11 | apt:
12 | name: apache2
13 | state: present
14 | become: true
15 | register: result
16 | until: result is successful
17 |
18 | - name: debian | enabling apache on boot and starting
19 | service:
20 | name: apache2
21 | state: started
22 | enabled: true
23 | become: true
24 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/meta/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | galaxy_info:
3 | author: Larry Smith Jr.
4 | description: An Ansible role that installs/configures phpIPAM http://phpipam.net/
5 | license: MIT
6 | min_ansible_version: 1.2
7 | platforms:
8 | - name: EL
9 | versions:
10 | - 7
11 | - name: Ubuntu
12 | versions:
13 | - bionic
14 | - trusty
15 | - xenial
16 | - name: Debian
17 | versions:
18 | - jessie
19 | - stretch
20 |
21 | galaxy_tags:
22 | - networking
23 | - system
24 |
25 | dependencies: []
26 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/meta/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | galaxy_info:
3 | author: Larry Smith Jr.
4 | description: An Ansible role that installs/configures [PowerDNS] (MySQL cluster ready)
5 |
6 | license: MIT
7 |
8 | min_ansible_version: 1.2
9 | platforms:
10 | - name: EL
11 | versions:
12 | - 7
13 | - name: Ubuntu
14 | versions:
15 | - bionic
16 | - trusty
17 | - xenial
18 | - name: Debian
19 | versions:
20 | - jessie
21 |
22 | galaxy_tags:
23 | - networking
24 | - system
25 |
26 | dependencies: []
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/meta/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | galaxy_info:
3 | author: Larry Smith Jr.
4 | description: An Ansible role that installs/configures PowerDNS Recursor
5 | license: license (GPLv2, CC-BY, etc)
6 |
7 | min_ansible_version: 1.2
8 |
9 | platforms:
10 | - name: EL
11 | versions:
12 | - 7
13 | - name: Ubuntu
14 | versions:
15 | - bionic
16 | - trusty
17 | - xenial
18 | - name: Debian
19 | versions:
20 | - jessie
21 |
22 | galaxy_tags:
23 | - system
24 | - networking
25 |
26 | dependencies: []
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/fedora/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: fedora
15 | image: jrei/systemd-fedora
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/fedora/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: fedora
15 | image: jrei/systemd-fedora
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/fedora/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: fedora
15 | image: jrei/systemd-fedora
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/centos7/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: centos7
15 | image: jrei/systemd-centos:7
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/centos8/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: centos8
15 | image: jrei/systemd-centos:8
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/centos7/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: centos7
15 | image: jrei/systemd-centos:7
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/centos8/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: centos8
15 | image: jrei/systemd-centos:8
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/centos7/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: centos7
15 | image: jrei/systemd-centos:7
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/centos8/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: centos8
15 | image: jrei/systemd-centos:8
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/debian8/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian8
15 | image: jrei/systemd-debian:8
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/debian9/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian9
15 | image: jrei/systemd-debian:9
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/fedora/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: fedora
15 | image: jrei/systemd-fedora
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/debian10/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian10
15 | image: jrei/systemd-debian:10
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/debian8/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian8
15 | image: jrei/systemd-debian:8
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/debian9/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian9
15 | image: jrei/systemd-debian:9
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/debian8/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian8
15 | image: jrei/systemd-debian:8
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/debian9/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian9
15 | image: jrei/systemd-debian:9
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/debian10/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian10
15 | image: jrei/systemd-debian:10
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/centos7/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: centos7
15 | image: jrei/systemd-centos:7
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/centos8/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: centos8
15 | image: jrei/systemd-centos:8
16 | privileged: true
17 | command: /usr/sbin/init
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/debian10/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian10
15 | image: jrei/systemd-debian:10
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/ubuntu1604/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: ubuntu1604
15 | image: jrei/systemd-ubuntu:16.04
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/ubuntu1804/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: ubuntu1804
15 | image: jrei/systemd-ubuntu:18.04
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/debian8/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian8
15 | image: jrei/systemd-debian:8
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/debian9/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian9
15 | image: jrei/systemd-debian:9
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/ubuntu1604/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: ubuntu1604
15 | image: jrei/systemd-ubuntu:16.04
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/ubuntu1804/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: ubuntu1804
15 | image: jrei/systemd-ubuntu:18.04
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/ubuntu1604/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: ubuntu1604
15 | image: jrei/systemd-ubuntu:16.04
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/ubuntu1804/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: ubuntu1804
15 | image: jrei/systemd-ubuntu:18.04
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/debian10/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: debian10
15 | image: jrei/systemd-debian:10
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/ubuntu1604/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: ubuntu1604
15 | image: jrei/systemd-ubuntu:16.04
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/ubuntu1804/molecule.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependency:
3 | name: galaxy
4 | enabled: false
5 | options:
6 | role-file: requirements.yml
7 | driver:
8 | name: docker
9 | lint: |
10 | yamllint .
11 | ansible-lint
12 | flake8
13 | platforms:
14 | - name: ubuntu1804
15 | image: jrei/systemd-ubuntu:18.04
16 | privileged: true
17 | command: /lib/systemd/systemd
18 | tmpfs:
19 | - /run
20 | - /tmp
21 | volumes:
22 | - /sys/fs/cgroup:/sys/fs/cgroup:ro
23 | provisioner:
24 | name: ansible
25 | playbooks:
26 | converge: ../shared/converge.yml
27 | verifier:
28 | name: ansible
29 |
--------------------------------------------------------------------------------
/Vagrant/requirements.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - src: https://github.com/mrlesmithjr/ansible-apache2.git
3 | - src: https://github.com/mrlesmithjr/ansible-bootstrap-python.git
4 | - src: https://github.com/mrlesmithjr/ansible-etc-hosts.git
5 | - src: https://github.com/mrlesmithjr/ansible-mysql.git
6 | - src: https://github.com/mrlesmithjr/ansible-ntp.git
7 | - src: https://github.com/mrlesmithjr/ansible-phpipam.git
8 | - src: https://github.com/mrlesmithjr/ansible-powerdns-authoritative.git
9 | - src: https://github.com/mrlesmithjr/ansible-powerdns-recursor.git
10 | - src: https://github.com/mrlesmithjr/ansible-rsyslog.git
11 | - src: https://github.com/mrlesmithjr/ansible-timezone.git
12 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/defaults/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # defaults file for ansible-etc-hosts
3 | # Defines if all nodes in play should be added to each hosts /etc/hosts
4 | etc_hosts_add_all_hosts: false
5 |
6 | # Defines if ipv6 info is included in /etc/hosts
7 | etc_hosts_enable_ipv6: true
8 |
9 | # Defines your primary dns suffix
10 | etc_hosts_pri_dns_name: vagrant.local
11 |
12 | # Defines if node has static IP.
13 | etc_hosts_static_ip: false
14 |
15 | # Defines if ansible_host is used for defining hosts
16 | etc_hosts_use_ansible_ssh_host: true
17 |
18 | # Defines if ansible_default_ipv4.address is used for defining hosts
19 | etc_hosts_use_default_ip_address: false
20 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/tasks/redhat.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: redhat | installing apache
3 | dnf:
4 | name: httpd
5 | state: present
6 | become: true
7 | register: result
8 | until: result is successful
9 | when: >
10 | ansible_distribution == "Fedora"
11 |
12 | - name: redhat | installing apache
13 | yum:
14 | name: httpd
15 | state: present
16 | become: true
17 | register: result
18 | until: result is successful
19 | when: >
20 | ansible_distribution != "Fedora"
21 |
22 | - name: redhat | enabling apache on boot and starting
23 | service:
24 | name: httpd
25 | state: started
26 | enabled: true
27 | become: true
28 |
--------------------------------------------------------------------------------
/Vagrant/bootstrap.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | if [ -f /etc/debian_version ]; then
3 | codename="$(lsb_release -c | awk {'print $2}')"
4 | if [[ $codename == "vivid" ]]; then
5 | sudo apt-get update && \
6 | sudo apt-get -y install python-simplejson
7 | fi
8 | if [[ $codename == "wily" ]]; then
9 | sudo apt-get update && \
10 | sudo apt-get -y install python-simplejson
11 | fi
12 | fi
13 | if [ -f /etc/redhat-release ]; then
14 | codename="$(gawk -F= '/^NAME/{print $2}' /etc/os-release)"
15 | if [[ $codename == "Fedora" ]]; then
16 | sudo dnf -y install python-devel python-dnf && \
17 | sudo dnf -y group install "C Development Tools and Libraries"
18 | fi
19 | fi
20 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/fedora/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # tasks file for ansible-apache2
3 | - include: set_facts.yml
4 |
5 | - include: alpine.yml
6 | when: ansible_os_family == "Alpine"
7 |
8 | - include: debian.yml
9 | tags:
10 | - install_apache2
11 | when: ansible_os_family == "Debian"
12 |
13 | - include: redhat.yml
14 | tags:
15 | - install_apache2
16 | when: ansible_os_family == "RedHat"
17 |
18 | - include: opensuse.yml
19 | when: ansible_os_family == "openSUSE Leap"
20 |
21 | - include: config_apache2.yml
22 | when: apache2_config
23 |
24 | - include: php.yml
25 | tags:
26 | - apache2_config_php
27 | - install_apache2_php5
28 | when: apache2_install_php
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/centos7/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/centos8/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/debian10/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/debian8/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/debian9/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/fedora/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/fedora/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/centos7/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/centos8/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/debian10/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/debian8/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/debian9/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/ubuntu1604/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/molecule/ubuntu1804/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/ubuntu1604/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/molecule/ubuntu1804/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/centos7/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/centos8/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/debian10/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/debian8/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/debian9/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/ubuntu1604/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/molecule/ubuntu1804/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/centos7/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/centos8/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/debian8/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/debian9/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/fedora/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/debian10/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/ubuntu1604/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/molecule/ubuntu1804/INSTALL.rst:
--------------------------------------------------------------------------------
1 | *******
2 | Docker driver installation guide
3 | *******
4 |
5 | Requirements
6 | ============
7 |
8 | * Docker Engine
9 |
10 | Install
11 | =======
12 |
13 | Please refer to the `Virtual environment`_ documentation for installation best
14 | practices. If not using a virtual environment, please consider passing the
15 | widely recommended `'--user' flag`_ when invoking ``pip``.
16 |
17 | .. _Virtual environment: https://virtualenv.pypa.io/en/latest/
18 | .. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
19 |
20 | .. code-block:: bash
21 |
22 | $ pip install 'molecule[docker]'
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/.travis.yml:
--------------------------------------------------------------------------------
1 | ---
2 | sudo: required
3 | language: python
4 | services:
5 | - docker
6 | before_install:
7 | - sudo apt-get -qq update
8 | install:
9 | - pip3 install -r requirements.txt
10 | - ansible --version
11 | - molecule --version
12 | script:
13 | - molecule test --scenario-name centos7
14 | # - molecule test --scenario-name centos8
15 | # - molecule test --scenario-name debian8
16 | - molecule test --scenario-name debian9
17 | - molecule test --scenario-name debian10
18 | - molecule test --scenario-name fedora
19 | - molecule test --scenario-name ubuntu1604
20 | - molecule test --scenario-name ubuntu1804
21 | notifications:
22 | webhooks: https://galaxy.ansible.com/api/v1/notifications/
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # tasks file for ansible-powerdns
3 | - include: pdns_accounts.yml
4 |
5 | - include: systemd_resolved.yml
6 | when: >
7 | ansible_service_mgr == "systemd" and
8 | pdns_auth_systemd_resolved_disable
9 |
10 | - include: pdns_server.yml
11 |
12 | - include: pdns_zones.yml
13 | tags:
14 | - pdns_auth_create_pdns_zones
15 | when: >
16 | pdns_auth_create_pdns_zones is defined and
17 | pdns_auth_create_pdns_zones
18 |
19 | - include: pdns_records.yml
20 | tags:
21 | - pdns_auth_create_records
22 | when: >
23 | (pdns_auth_create_records is defined and
24 | pdns_auth_create_records) and
25 | pdns_auth_records is defined
26 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/.travis.yml:
--------------------------------------------------------------------------------
1 | ---
2 | sudo: required
3 | language: python
4 | services:
5 | - docker
6 | before_install:
7 | - sudo apt-get -qq update
8 | install:
9 | - pip3 install -r requirements.txt
10 | - ansible --version
11 | - molecule --version
12 | script:
13 | - molecule test --scenario-name centos7
14 | # - molecule test --scenario-name centos8
15 | # - molecule test --scenario-name debian8
16 | - molecule test --scenario-name debian9
17 | - molecule test --scenario-name debian10
18 | - molecule test --scenario-name fedora
19 | - molecule test --scenario-name ubuntu1604
20 | - molecule test --scenario-name ubuntu1804
21 | notifications:
22 | webhooks: https://galaxy.ansible.com/api/v1/notifications/
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/templates/etc/powerdns/recursor.conf.j2:
--------------------------------------------------------------------------------
1 | {% if pdns_recursor_enable_fwd_zones is defined and pdns_recursor_enable_fwd_zones %}
2 | {% if pdns_recursor_fwd_zones is defined %}
3 | forward-zones={% for item in pdns_recursor_fwd_zones %}{{ item.name }}={% for server in item.servers %}{{ server }}{% if not loop.last %};{% endif %}{% endfor %}{% if not loop.last %}, {% endif %}{% endfor %}
4 |
5 | {% endif %}
6 | {% endif %}
7 | local-address={{ pdns_recursor_local_address }}
8 | local-port={{ pdns_recursor_port }}
9 | {% if pdns_recursor_source_ip is defined and pdns_recursor_source_ip %}
10 | query-local-address={{ ansible_default_ipv4.address }}
11 | {% endif %}
12 | quiet=yes
13 | setgid=pdns
14 | setuid=pdns
15 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/.travis.yml:
--------------------------------------------------------------------------------
1 | ---
2 | sudo: required
3 | language: python
4 | services:
5 | - docker
6 | before_install:
7 | - sudo apt-get -qq update
8 | install:
9 | - pip3 install -r requirements.txt
10 | - ansible --version
11 | - molecule --version
12 | script:
13 | - molecule test --scenario-name centos7
14 | # - molecule test --scenario-name centos8
15 | # - molecule test --scenario-name debian8
16 | - molecule test --scenario-name debian9
17 | - molecule test --scenario-name debian10
18 | - molecule test --scenario-name fedora
19 | - molecule test --scenario-name ubuntu1604
20 | - molecule test --scenario-name ubuntu1804
21 | notifications:
22 | webhooks: https://galaxy.ansible.com/api/v1/notifications/
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/.travis.yml:
--------------------------------------------------------------------------------
1 | ---
2 | sudo: required
3 | language: python
4 | services:
5 | - docker
6 | before_install:
7 | - sudo apt-get -qq update
8 | install:
9 | - pip3 install -r requirements.txt
10 | - ansible --version
11 | - molecule --version
12 | script:
13 | - molecule test --scenario-name centos7
14 | # - molecule test --scenario-name centos8
15 | # - molecule test --scenario-name debian8
16 | - molecule test --scenario-name debian9
17 | - molecule test --scenario-name debian10
18 | - molecule test --scenario-name fedora
19 | - molecule test --scenario-name ubuntu1604
20 | - molecule test --scenario-name ubuntu1804
21 | notifications:
22 | webhooks: https://galaxy.ansible.com/api/v1/notifications/
23 |
--------------------------------------------------------------------------------
/.github/stale.yml:
--------------------------------------------------------------------------------
1 | # Number of days of inactivity before an issue becomes stale
2 | daysUntilStale: 60
3 | # Number of days of inactivity before a stale issue is closed
4 | daysUntilClose: 7
5 | # Issues with these labels will never be considered stale
6 | exemptLabels:
7 | - pinned
8 | - security
9 | # Label to use when marking an issue as stale
10 | staleLabel: wontfix
11 | # Comment to post when marking an issue as stale. Set to `false` to disable
12 | markComment: >
13 | This issue has been automatically marked as stale because it has not had
14 | recent activity. It will be closed if no further activity occurs. Thank you
15 | for your contributions.
16 | # Comment to post when closing a stale issue. Set to `false` to disable
17 | closeComment: false
18 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/meta/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | galaxy_info:
3 | author: Larry Smith Jr.
4 | description: An Ansible role to install/configure NTP
5 | license: MIT
6 | min_ansible_version: 1.2
7 | platforms:
8 | - name: EL
9 | versions:
10 | - 6
11 | - 7
12 | - name: Fedora
13 | versions:
14 | - 24
15 | - 25
16 | - 26
17 | - 27
18 | - 28
19 | - 29
20 | - name: Ubuntu
21 | versions:
22 | - bionic
23 | - precise
24 | - trusty
25 | - xenial
26 | - name: Debian
27 | versions:
28 | - jessie
29 | - stretch
30 | - wheezy
31 | galaxy_tags:
32 | - networking
33 | - system
34 | dependencies: []
35 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/meta/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | galaxy_info:
3 | author: Larry Smith Jr.
4 | description: Ansible role to install/configure Apache2
5 | license: MIT
6 | min_ansible_version: 1.2
7 |
8 | platforms:
9 | - name: EL
10 | versions:
11 | - 6
12 | - 7
13 | - name: Fedora
14 | versions:
15 | - 23
16 | - 24
17 | - 25
18 | - 26
19 | - 27
20 | - 28
21 | - 29
22 | - name: Ubuntu
23 | versions:
24 | - bionic
25 | - precise
26 | - trusty
27 | - xenial
28 | - name: Debian
29 | versions:
30 | - jessie
31 | - stretch
32 | - wheezy
33 |
34 | galaxy_tags:
35 | - web
36 | dependencies: []
37 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/.yamllint:
--------------------------------------------------------------------------------
1 | ---
2 | # Based on ansible-lint config
3 | extends: default
4 |
5 | ignore: |
6 | venv/
7 |
8 | rules:
9 | braces:
10 | max-spaces-inside: 1
11 | level: error
12 | brackets:
13 | max-spaces-inside: 1
14 | level: error
15 | colons:
16 | max-spaces-after: -1
17 | level: error
18 | commas:
19 | max-spaces-after: -1
20 | level: error
21 | comments: disable
22 | comments-indentation: disable
23 | document-start: disable
24 | empty-lines:
25 | max: 3
26 | level: error
27 | hyphens:
28 | level: error
29 | indentation: disable
30 | key-duplicates: enable
31 | line-length: disable
32 | new-line-at-end-of-file: disable
33 | new-lines:
34 | type: unix
35 | trailing-spaces: disable
36 | truthy: disable
37 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/.yamllint:
--------------------------------------------------------------------------------
1 | ---
2 | # Based on ansible-lint config
3 | extends: default
4 |
5 | ignore: |
6 | venv/
7 |
8 | rules:
9 | braces:
10 | max-spaces-inside: 1
11 | level: error
12 | brackets:
13 | max-spaces-inside: 1
14 | level: error
15 | colons:
16 | max-spaces-after: -1
17 | level: error
18 | commas:
19 | max-spaces-after: -1
20 | level: error
21 | comments: disable
22 | comments-indentation: disable
23 | document-start: disable
24 | empty-lines:
25 | max: 3
26 | level: error
27 | hyphens:
28 | level: error
29 | indentation: disable
30 | key-duplicates: enable
31 | line-length: disable
32 | new-line-at-end-of-file: disable
33 | new-lines:
34 | type: unix
35 | trailing-spaces: disable
36 | truthy: disable
37 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/meta/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | galaxy_info:
3 | author: Larry Smith Jr.
4 | description: Ansible role to install/configure MySQL
5 | license: MIT
6 | min_ansible_version: 2.5
7 |
8 | platforms:
9 | - name: EL
10 | versions:
11 | - 6
12 | - 7
13 | - name: Fedora
14 | versions:
15 | - 23
16 | - 24
17 | - 25
18 | - 26
19 | - 27
20 | - 28
21 | - 29
22 | - 30
23 | - 31
24 | - name: Ubuntu
25 | versions:
26 | - bionic
27 | - precise
28 | - trusty
29 | - xenial
30 | - name: Debian
31 | versions:
32 | - buster
33 | - jessie
34 | - stretch
35 |
36 | galaxy_tags:
37 | - database
38 |
39 | dependencies: []
40 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/.yamllint:
--------------------------------------------------------------------------------
1 | ---
2 | # Based on ansible-lint config
3 | extends: default
4 |
5 | ignore: |
6 | venv/
7 |
8 | rules:
9 | braces:
10 | max-spaces-inside: 1
11 | level: error
12 | brackets:
13 | max-spaces-inside: 1
14 | level: error
15 | colons:
16 | max-spaces-after: -1
17 | level: error
18 | commas:
19 | max-spaces-after: -1
20 | level: error
21 | comments: disable
22 | comments-indentation: disable
23 | document-start: disable
24 | empty-lines:
25 | max: 3
26 | level: error
27 | hyphens:
28 | level: error
29 | indentation: disable
30 | key-duplicates: enable
31 | line-length: disable
32 | new-line-at-end-of-file: disable
33 | new-lines:
34 | type: unix
35 | trailing-spaces: disable
36 | truthy: disable
37 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/.yamllint:
--------------------------------------------------------------------------------
1 | ---
2 | # Based on ansible-lint config
3 | extends: default
4 |
5 | ignore: |
6 | venv/
7 |
8 | rules:
9 | braces:
10 | max-spaces-inside: 1
11 | level: error
12 | brackets:
13 | max-spaces-inside: 1
14 | level: error
15 | colons:
16 | max-spaces-after: -1
17 | level: error
18 | commas:
19 | max-spaces-after: -1
20 | level: error
21 | comments: disable
22 | comments-indentation: disable
23 | document-start: disable
24 | empty-lines:
25 | max: 3
26 | level: error
27 | hyphens:
28 | level: error
29 | indentation: disable
30 | key-duplicates: enable
31 | line-length: disable
32 | new-line-at-end-of-file: disable
33 | new-lines:
34 | type: unix
35 | trailing-spaces: disable
36 | truthy: disable
37 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/templates/etc/xinetd.d/mysqlchk.j2:
--------------------------------------------------------------------------------
1 | # default: on
2 | # description: mysqlchk
3 | service mysqlchk
4 | {
5 | flags = REUSE
6 | socket_type = stream
7 | port = 9200
8 | wait = no
9 | user = nobody
10 | server = /usr/local/bin/mysqlchk.sh
11 | log_on_failure += USERID
12 | disable = no
13 | # only_from = 0.0.0.0/0
14 | # recommended to put the IPs that need
15 | # to connect exclusively (security purposes)
16 | per_source = UNLIMITED
17 | # Recently added (May 20, 2010)
18 | # Prevents the system from complaining
19 | # about having too many connections open from
20 | # the same IP. More info:
21 | # http://www.linuxfocus.org/English/November2000/article175.shtml
22 | }
23 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # tasks file for ansible-etc-hosts
3 | - name: pre-reqs (RedHat)
4 | yum:
5 | name: ["libselinux-python"]
6 | state: present
7 | become: true
8 | register: result
9 | until: result is successful
10 | when: >
11 | ansible_os_family == "RedHat" and
12 | ansible_distribution != "Fedora"
13 |
14 | - name: pre-reqs (RedHat)
15 | dnf:
16 | name: ["libselinux-python"]
17 | state: present
18 | become: true
19 | register: result
20 | until: result is successful
21 | when: >
22 | ansible_os_family == "RedHat" and
23 | ansible_distribution == "Fedora"
24 |
25 | - name: main | updating /etc/hosts (localhost)
26 | template:
27 | src: etc/hosts.j2
28 | dest: /etc/hosts
29 | owner: root
30 | group: root
31 | mode: 0644
32 | become: true
33 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/tasks/db_users.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: db_users | Managing Database Users
3 | mysql_user:
4 | name: "{{ item['name'] }}"
5 | password: "{{ item['password'] }}"
6 | state: "{{ item['state'] }}"
7 | become: true
8 | loop: "{{ mysql_db_users }}"
9 | when: item['privs'] is not defined
10 |
11 | - name: db_users | Managing Database Users
12 | mysql_user:
13 | append_privs: "{{ item[1]['append_privs']|default(omit) }}"
14 | host: "{{ item[1]['host']|default(omit) }}"
15 | name: "{{ item[0]['name'] }}"
16 | password: "{{ item[0]['password'] }}"
17 | priv: "{{ item[1]['db'] }}.{{ item[1]['table'] }}:{{ item[1]['priv'] }}"
18 | state: "{{ item[0]['state'] }}"
19 | become: true
20 | with_subelements:
21 | - "{{ mysql_db_users }}"
22 | - privs
23 | when: >
24 | item[1] is defined
25 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # tasks file for ansible-mysql
3 | - include_tasks: set_facts.yml
4 |
5 | - include_tasks: alpine.yml
6 | when: ansible_os_family == "Alpine"
7 |
8 | - include_tasks: debian.yml
9 | when: ansible_os_family == "Debian"
10 |
11 | - include_tasks: redhat.yml
12 | when: ansible_os_family == "RedHat"
13 |
14 | - include_tasks: config.yml
15 | when: mysql_config|bool
16 |
17 | - include_tasks: configure_root_access.yml
18 |
19 | - include_tasks: dbs.yml
20 | when:
21 | - mysql_dbs is defined
22 | - mysql_dbs != []
23 |
24 | - include_tasks: db_users.yml
25 | when:
26 | - mysql_db_users is defined
27 | - mysql_db_users != []
28 |
29 | - include_tasks: mysql_check.yml
30 | when: mysql_config_mysqlchk|bool
31 |
32 | - include_tasks: setup_replication.yml
33 | when: mysql_config_replication|bool
34 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/defaults/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # defaults file for ansible-ntp
3 | # Defines if host is ntp_master
4 |
5 | # Defines whether a fallback server should be configured or not
6 | ntp_enable_fallback_server: false
7 |
8 | # Defines an ntp fallback to server use when ntp_enable_fallback_server is true
9 | ntp_fallback_server: ntp.ubuntu.com
10 |
11 | # set ntp_master to true on specific group_vars/group
12 | ntp_master: false
13 |
14 | # Define your ntp_master_servers
15 | ntp_master_servers:
16 | - 0.ubuntu.pool.ntp.org
17 | - 1.ubuntu.pool.ntp.org
18 | - 2.ubuntu.pool.ntp.org
19 | - 3.ubuntu.pool.ntp.org
20 |
21 | # Defines your primary domain name (FQDN)
22 | ntp_pri_domain_name: example.org
23 | # Defines internal ntp servers for clients to poll
24 | # ntp_servers:
25 | # - 'ntp1.{{ ntp_pri_domain_name }}'
26 | # - 'ntp2.{{ ntp_pri_domain_name }}'
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # tasks file for ansible-phpipam
3 | - include: set_facts.yml
4 |
5 | - include: upgrade.yml
6 | when: >
7 | phpipam_upgrade or
8 | phpipam_install_from_git
9 |
10 | - include: debian.yml
11 | when: ansible_os_family == "Debian"
12 |
13 | - include: redhat.yml
14 | when: ansible_os_family == "RedHat"
15 |
16 | - include: cron.yml
17 | tags:
18 | - config_cron
19 |
20 | - include: config_apache2.yml
21 | tags:
22 | - config_apache2
23 | when: >
24 | phpipam_prettify_links is defined and
25 | phpipam_prettify_links
26 |
27 | - include: config_phpipam.yml
28 | tags:
29 | - config_phpipam
30 |
31 | - include: backups.yml
32 | tags:
33 | - phpipam_db_backups
34 | when: >
35 | phpipam_enable_db_backups is defined and
36 | phpipam_enable_db_backups
37 |
--------------------------------------------------------------------------------
/examples/add_records.csv:
--------------------------------------------------------------------------------
1 | name,zone,record_type,content,disabled,ttl,set_ptr,priority
2 | development,test.vagrant.local,A,192.168.202.3,FALSE,3600,TRUE,0
3 | mail,vagrant.local,CNAME,smtp.vagrant.local,FALSE,3600,TRUE,0
4 | node0,test.vagrant.local,A,192.168.202.4,FALSE,3600,TRUE,0
5 | node1,test.vagrant.local,A,192.168.202.5,FALSE,3600,TRUE,0
6 | node100,test.vagrant.local,A,192.168.202.100,FALSE,3600,TRUE,0
7 | node101,test.vagrant.local,A,192.168.202.101,FALSE,3600,TRUE,0
8 | node102,test.vagrant.local,A,192.168.202.102,FALSE,3600,TRUE,0
9 | node2,dev.vagrant.local,A,192.168.202.201,FALSE,3600,TRUE,0
10 | node201,dev.vagrant.local,A,192.168.202.202,FALSE,3600,TRUE,0
11 | node202,dev.vagrant.local,A,192.168.202.203,FALSE,3600,TRUE,0
12 | node203,dev.vagrant.local,CNAME,node201.dev.vagrant.local,FALSE,3600,TRUE,0
13 | smtp,vagrant.local,A,192.168.202.20,FALSE,3600,TRUE,0
14 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/README.md:
--------------------------------------------------------------------------------
1 | Role Name
2 | =========
3 |
4 | An [Ansible] role that installs/configures [PowerDNS] Recursor
5 |
6 | Requirements
7 | ------------
8 |
9 | Install required [Ansible] roles..
10 | ```
11 | sudo ansible-galaxy install -r requirements.yml
12 | ```
13 |
14 | Role Variables
15 | --------------
16 |
17 | [Role Defaults](./defaults/main.yml)
18 |
19 | Dependencies
20 | ------------
21 |
22 | Reference requirements section above...
23 |
24 | Example Playbook
25 | ----------------
26 |
27 | [Example Playbook](./playbook.yml)
28 |
29 | License
30 | -------
31 |
32 | BSD
33 |
34 | Author Information
35 | ------------------
36 |
37 | Larry Smith Jr.
38 | - @mrlesmithjr
39 | - http://everythingshouldbevirtual.com
40 | - mrlesmithjr [at] gmail.com
41 |
42 | [Ansible]:
43 | [PowerDNS]:
44 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/templates/archive/config.php-1.1.j2:
--------------------------------------------------------------------------------
1 |
35 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/tasks/redhat.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Need to add EPEL Repo for python2 pip
3 | - name: redhat | Adding EPEL Repo
4 | yum:
5 | name: epel-release
6 | state: present
7 | become: true
8 | register: result
9 | until: result is successful
10 | when:
11 | - ansible_distribution != "Fedora"
12 | - ansible_python_version is version('3', '<')
13 |
14 | - name: redhat | Installing Python Packages
15 | dnf:
16 | name: "{{ bootstrap_python_packages }}"
17 | state: present
18 | become: true
19 | register: result
20 | until: result is successful
21 | when: ansible_distribution == "Fedora"
22 |
23 | - name: redhat | Installing Python Packages
24 | yum:
25 | name: "{{ bootstrap_python_packages }}"
26 | state: present
27 | become: true
28 | register: result
29 | until: result is successful
30 | when: ansible_distribution != "Fedora"
31 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/templates/archive/config.php-1.1.010.j2:
--------------------------------------------------------------------------------
1 |
36 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/tasks/debian.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: debian | ensuring rsyslog is installed
3 | apt:
4 | name: rsyslog
5 | state: present
6 | become: true
7 | register: result
8 | until: result is successful
9 |
10 | - name: debian | configuring rsyslog.conf
11 | template:
12 | src: etc/rsyslog.conf.j2
13 | dest: /etc/rsyslog.conf
14 | owner: root
15 | group: root
16 | mode: 0644
17 | become: true
18 | notify:
19 | - restart rsyslog
20 | when:
21 | - rsyslog_config is defined
22 | - rsyslog_config|bool
23 |
24 | - name: debian | configuring rsyslog
25 | template:
26 | src: etc/rsyslog.d/50-default.conf.j2
27 | dest: /etc/rsyslog.d/50-default.conf
28 | owner: root
29 | group: root
30 | mode: 0644
31 | become: true
32 | notify:
33 | - restart rsyslog
34 | when:
35 | - rsyslog_config is defined
36 | - rsyslog_config|bool
37 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tasks/redhat.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: redhat | installing packages
3 | yum:
4 | name: ["ntp"]
5 | state: present
6 | become: true
7 | register: result
8 | until: result is successful
9 | when: >
10 | ansible_distribution != "Fedora"
11 |
12 | - name: redhat | installing packages
13 | dnf:
14 | name: ["ntp"]
15 | state: present
16 | become: true
17 | register: result
18 | until: result is successful
19 | when: >
20 | ansible_distribution == "Fedora"
21 |
22 | - name: redhat | configuring ntp
23 | template:
24 | src: etc/ntp.conf.j2
25 | dest: /etc/ntp.conf
26 | owner: root
27 | group: root
28 | mode: u=rw,g=r,o=r
29 | become: true
30 | notify: restart ntpd
31 |
32 | - name: redhat | ensuring ntpd service is started and enabled on boot
33 | service:
34 | name: ntpd
35 | state: started
36 | enabled: true
37 | become: true
38 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | ## [v0.1.3](https://github.com/mrlesmithjr/ansible-powerdns-recursor/tree/v0.1.3) (2016-10-12)
4 | [Full Changelog](https://github.com/mrlesmithjr/ansible-powerdns-recursor/compare/v0.1.2...v0.1.3)
5 |
6 | ## [v0.1.2](https://github.com/mrlesmithjr/ansible-powerdns-recursor/tree/v0.1.2) (2016-10-05)
7 | [Full Changelog](https://github.com/mrlesmithjr/ansible-powerdns-recursor/compare/v0.1.1...v0.1.2)
8 |
9 | ## [v0.1.1](https://github.com/mrlesmithjr/ansible-powerdns-recursor/tree/v0.1.1) (2016-10-05)
10 | [Full Changelog](https://github.com/mrlesmithjr/ansible-powerdns-recursor/compare/v0.1.0...v0.1.1)
11 |
12 | ## [v0.1.0](https://github.com/mrlesmithjr/ansible-powerdns-recursor/tree/v0.1.0) (2016-10-05)
13 |
14 |
15 | \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/.gitlab-ci.yml:
--------------------------------------------------------------------------------
1 | ---
2 | image: docker:git
3 |
4 | services:
5 | - docker:dind
6 |
7 | before_script:
8 | - apk update && apk add --no-cache docker
9 | python3-dev py3-pip docker gcc git curl build-base
10 | autoconf automake py3-cryptography linux-headers
11 | musl-dev libffi-dev openssl-dev openssh
12 | - docker info
13 | - python3 --version
14 | - pip3 install -r requirements.txt
15 | - ansible --version
16 | - molecule --version
17 |
18 | molecule:
19 | stage: test
20 | script:
21 | - molecule test --scenario-name centos7
22 | # - molecule test --scenario-name centos8
23 | # - molecule test --scenario-name debian8
24 | - molecule test --scenario-name debian9
25 | - molecule test --scenario-name debian10
26 | - molecule test --scenario-name fedora
27 | - molecule test --scenario-name ubuntu1604
28 | - molecule test --scenario-name ubuntu1804
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/.gitlab-ci.yml:
--------------------------------------------------------------------------------
1 | ---
2 | image: docker:git
3 |
4 | services:
5 | - docker:dind
6 |
7 | before_script:
8 | - apk update && apk add --no-cache docker
9 | python3-dev py3-pip docker gcc git curl build-base
10 | autoconf automake py3-cryptography linux-headers
11 | musl-dev libffi-dev openssl-dev openssh
12 | - docker info
13 | - python3 --version
14 | - pip3 install -r requirements.txt
15 | - ansible --version
16 | - molecule --version
17 |
18 | molecule:
19 | stage: test
20 | script:
21 | - molecule test --scenario-name centos7
22 | # - molecule test --scenario-name centos8
23 | # - molecule test --scenario-name debian8
24 | - molecule test --scenario-name debian9
25 | - molecule test --scenario-name debian10
26 | - molecule test --scenario-name fedora
27 | - molecule test --scenario-name ubuntu1604
28 | - molecule test --scenario-name ubuntu1804
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/.gitlab-ci.yml:
--------------------------------------------------------------------------------
1 | ---
2 | image: docker:git
3 |
4 | services:
5 | - docker:dind
6 |
7 | before_script:
8 | - apk update && apk add --no-cache docker
9 | python3-dev py3-pip docker gcc git curl build-base
10 | autoconf automake py3-cryptography linux-headers
11 | musl-dev libffi-dev openssl-dev openssh
12 | - docker info
13 | - python3 --version
14 | - pip3 install -r requirements.txt
15 | - ansible --version
16 | - molecule --version
17 |
18 | molecule:
19 | stage: test
20 | script:
21 | - molecule test --scenario-name centos7
22 | # - molecule test --scenario-name centos8
23 | # - molecule test --scenario-name debian8
24 | - molecule test --scenario-name debian9
25 | - molecule test --scenario-name debian10
26 | - molecule test --scenario-name fedora
27 | - molecule test --scenario-name ubuntu1604
28 | - molecule test --scenario-name ubuntu1804
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/.gitlab-ci.yml:
--------------------------------------------------------------------------------
1 | ---
2 | image: docker:git
3 |
4 | services:
5 | - docker:dind
6 |
7 | before_script:
8 | - apk update && apk add --no-cache docker
9 | python3-dev py3-pip docker gcc git curl build-base
10 | autoconf automake py3-cryptography linux-headers
11 | musl-dev libffi-dev openssl-dev openssh
12 | - docker info
13 | - python3 --version
14 | - pip3 install -r requirements.txt
15 | - ansible --version
16 | - molecule --version
17 |
18 | molecule:
19 | stage: test
20 | script:
21 | - molecule test --scenario-name centos7
22 | # - molecule test --scenario-name centos8
23 | # - molecule test --scenario-name debian8
24 | - molecule test --scenario-name debian9
25 | - molecule test --scenario-name debian10
26 | - molecule test --scenario-name fedora
27 | - molecule test --scenario-name ubuntu1604
28 | - molecule test --scenario-name ubuntu1804
29 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/tasks/alpine.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: alpine | Installing MySQL Pre-Reqs
3 | apk:
4 | name: ["py-mysqldb", "mysql-client"]
5 | state: present
6 | become: true
7 | register: result
8 | until: result is successful
9 |
10 | - name: alpine | Installing MySQL
11 | apk:
12 | name: mysql
13 | state: present
14 | register: _alpine_mysql_installed
15 | become: true
16 | until: _alpine_mysql_installed is successful
17 |
18 | - name: alpine | Ensuring /var/log/mysql Exists
19 | file:
20 | path: /var/log/mysql
21 | owner: mysql
22 | group: mysql
23 | state: directory
24 | become: true
25 |
26 | - name: alpine | Checking If MySQL Has Already Been Setup
27 | stat:
28 | path: /var/lib/mysql/mysql
29 | register: _alpine_mysql_setup
30 |
31 | - name: alpine | Setting Up MySQL
32 | command: /etc/init.d/mariadb setup
33 | become: true
34 | when: not _alpine_mysql_setup['stat']['exists']
35 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tasks/backups.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: backups | ensuring backups folder exists
3 | file:
4 | path: "{{ phpipam_db_backup_dir }}"
5 | state: directory
6 | become: true
7 |
8 | - name: backups | creating backup cron job
9 | cron:
10 | name: phpipam DB Backups
11 | job: '/usr/bin/mysqldump -u {{ phpipam_db_user }} -p{{ phpipam_db_pass }} {{ phpipam_db_name }} > {{ phpipam_db_backup_dir }}/{{ phpipam_db_backup_name_prefix }}_$(date +"\%y\%m\%d").db'
12 | special_time: daily
13 | user: root
14 | cron_file: phpipam_db_backups
15 | state: present
16 | become: true
17 |
18 | - name: backups | creating backup cleanup cron job
19 | cron:
20 | name: phpipam DB Backups cleanup
21 | job: '/usr/bin/find {{ phpipam_db_backup_dir }}/ -ctime +10 -exec rm {} \;'
22 | special_time: daily
23 | user: root
24 | cron_file: phpipam_db_backups_cleanup
25 | state: present
26 | become: true
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/templates/etc/rsyslog.d/50-default.conf.j2:
--------------------------------------------------------------------------------
1 | {{ ansible_managed|comment }}
2 |
3 | # Set our initial redirects here to ensure we catch everything
4 | {% for item in rsyslog_defaults %}
5 | {% if item.name|length>0 %}
6 | {% set selector = [item.selectors|default('*.*')]|flatten|join(';') %}
7 | {% set proto = item.proto|default('') %}
8 | {% if proto == 'nosync' %}
9 | {% set prefix = '' %}
10 | {% elif proto == 'pipe' %}
11 | {% set prefix = '|' %}
12 | {% elif proto == 'tcp' %}
13 | {% set prefix = '@@' %}
14 | {% elif proto == 'udp' %}
15 | {% set prefix = '@' %}
16 | {% else %}
17 | {% set prefix = '' %}
18 | {% endif %}
19 | {% if item.port|default(0)|int>0 %}
20 | {% set suffix = ':' + item.port %}
21 | {% else %}
22 | {% set suffix = '' %}
23 | {% endif %}
24 | {{ selector }} {{ prefix }}{{ item.name }}{{ suffix }}
25 | {% endif %}
26 | {% endfor %}
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tasks/config_apache2.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: config_apache2 | reconfiguring default website
3 | template:
4 | src: etc/apache2/sites-available/000-default.conf.j2
5 | dest: /etc/apache2/sites-available/000-default.conf
6 | owner: root
7 | group: root
8 | mode: 0644
9 | backup: yes
10 | become: true
11 | notify: restart apache2
12 | when: ansible_os_family == "Debian"
13 |
14 | - name: config_apache2 | reconfiguring default website
15 | template:
16 | src: etc/httpd/conf/httpd.conf.j2
17 | dest: /etc/httpd/conf/httpd.conf
18 | owner: root
19 | group: root
20 | mode: 0644
21 | backup: yes
22 | become: true
23 | notify: restart httpd
24 | when: ansible_os_family == "RedHat"
25 |
26 | - name: config_apache2 | enabling php mod extensions
27 | command: "{{ phpenmod_command }} {{ item }}"
28 | become: true
29 | with_items:
30 | - json
31 | when: ansible_os_family == "Debian"
32 | changed_when: false
33 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-timezone/.travis.yml:
--------------------------------------------------------------------------------
1 | ---
2 | language: python
3 | python: "2.7"
4 |
5 | # Use the new container infrastructure
6 | sudo: false
7 |
8 | # Install ansible
9 | addons:
10 | apt:
11 | packages:
12 | - python-pip
13 |
14 | install:
15 | # Install ansible
16 | - pip install ansible
17 |
18 | # Check ansible version
19 | - ansible --version
20 |
21 | # Create ansible.cfg with correct roles_path
22 | - printf '[defaults]\nroles_path=../' >ansible.cfg
23 |
24 | script:
25 | # Basic role syntax check
26 | - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
27 | # Install role
28 | - ansible-playbook tests/test.yml -i tests/inventory --check
29 | # # Check idempotence
30 | # - "ansible-playbook tests/test.yml -i tests/inventory | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)"
31 |
32 | notifications:
33 | webhooks: https://galaxy.ansible.com/api/v1/notifications/
34 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/tasks/redhat.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: redhat_rsyslog | ensuring rsyslog is installed
3 | yum:
4 | name: rsyslog
5 | state: present
6 | become: true
7 | register: result
8 | until: result is successful
9 | when:
10 | - ansible_distribution != "Fedora"
11 |
12 | - name: redhat_rsyslog | ensuring rsyslog is installed
13 | dnf:
14 | name: rsyslog
15 | state: present
16 | become: true
17 | register: result
18 | until: result is successful
19 | when:
20 | - ansible_distribution == "Fedora"
21 |
22 | - name: redhat_rsyslog | configuring rsyslog
23 | template:
24 | src: etc/redhat_rsyslog.conf.j2
25 | dest: /etc/rsyslog.conf
26 | mode: 0644
27 | owner: root
28 | group: root
29 | become: true
30 | notify:
31 | - restart rsyslog
32 | when:
33 | - rsyslog_config is defined
34 | - rsyslog_config|bool
35 |
36 | - name: redhat_rsyslog | enabling rsyslog service
37 | service:
38 | name: rsyslog
39 | enabled: true
40 | state: started
41 | become: true
42 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/templates/etc/apache2/sites-available/000-default.conf.j2:
--------------------------------------------------------------------------------
1 | {% if not apache2_config_virtual_hosts %}
2 |
3 | ServerAdmin {{ apache2_server_admin }}
4 | DocumentRoot {{ apache2_web_root }}
5 | ErrorLog ${APACHE_LOG_DIR}/error.log
6 | CustomLog ${APACHE_LOG_DIR}/access.log combined
7 |
8 | {% elif apache2_virtual_hosts is defined and apache2_config_virtual_hosts %}
9 | {% for item in apache2_virtual_hosts %}
10 |
11 | ServerAdmin {{ item.serveradmin }}
12 | DocumentRoot {{ item.documentroot }}
13 | {% if not item.default_site %}
14 | ServerName {{ item.servername }}
15 | {% endif %}
16 | {% if not item.default_site %}
17 | ErrorLog {{ apache2_log_dir }}/{{ item.servername }}_error.log
18 | CustomLog {{ apache2_log_dir }}/{{ item.servername }}_access.log combined
19 | {% elif item.default_site %}
20 | ErrorLog {{ apache2_log_dir }}/error.log
21 | CustomLog {{ apache2_log_dir }}/access.log combined
22 | {% endif %}
23 |
24 |
25 | {% endfor %}
26 | {% endif %}
27 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Larry Smith Jr.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.fedora-24:
--------------------------------------------------------------------------------
1 | FROM fedora:24
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.fedora-25:
--------------------------------------------------------------------------------
1 | FROM fedora:25
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.fedora-26:
--------------------------------------------------------------------------------
1 | FROM fedora:26
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.fedora-27:
--------------------------------------------------------------------------------
1 | FROM fedora:27
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.fedora-28:
--------------------------------------------------------------------------------
1 | FROM fedora:28
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.fedora-29:
--------------------------------------------------------------------------------
1 | FROM fedora:29
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-ntp/tests/Dockerfile.centos-7:
--------------------------------------------------------------------------------
1 | FROM centos:7
2 | ENV container=docker
3 |
4 | RUN yum -y install epel-release && \
5 | yum -y install gmp-devel libffi-devel openssl-devel python-crypto \
6 | python-devel python-pip python-setuptools python-virtualenv \
7 | redhat-rpm-config && \
8 | yum -y group install "Development Tools"
9 |
10 | # Install systemd -- See https://hub.docker.com/_/centos/
11 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
12 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
13 | rm -f /etc/systemd/system/*.wants/*;\
14 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
16 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
17 | rm -f /lib/systemd/system/basic.target.wants/*;\
18 | rm -f /lib/systemd/system/anaconda.target.wants/*;
19 |
20 | RUN pip install enum34 ipaddress wheel && \
21 | pip install ansible ansible-lint
22 |
23 | COPY .ansible-lint /
24 |
25 | VOLUME ["/sys/fs/cgroup"]
26 |
27 | CMD ["/usr/sbin/init"]
28 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tests/Dockerfile.fedora-24:
--------------------------------------------------------------------------------
1 | FROM fedora:24
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tests/Dockerfile.fedora-25:
--------------------------------------------------------------------------------
1 | FROM fedora:25
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tests/Dockerfile.fedora-26:
--------------------------------------------------------------------------------
1 | FROM fedora:26
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.fedora-24:
--------------------------------------------------------------------------------
1 | FROM fedora:24
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.fedora-25:
--------------------------------------------------------------------------------
1 | FROM fedora:25
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.fedora-26:
--------------------------------------------------------------------------------
1 | FROM fedora:26
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.fedora-27:
--------------------------------------------------------------------------------
1 | FROM fedora:27
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.fedora-28:
--------------------------------------------------------------------------------
1 | FROM fedora:28
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.fedora-29:
--------------------------------------------------------------------------------
1 | FROM fedora:29
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/tests/Dockerfile.centos-7:
--------------------------------------------------------------------------------
1 | FROM centos:7
2 | ENV container=docker
3 |
4 | RUN yum -y install epel-release && \
5 | yum -y install gmp-devel libffi-devel openssl-devel python-crypto \
6 | python-devel python-pip python-setuptools python-virtualenv \
7 | redhat-rpm-config && \
8 | yum -y group install "Development Tools"
9 |
10 | # Install systemd -- See https://hub.docker.com/_/centos/
11 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
12 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
13 | rm -f /etc/systemd/system/*.wants/*;\
14 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
16 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
17 | rm -f /lib/systemd/system/basic.target.wants/*;\
18 | rm -f /lib/systemd/system/anaconda.target.wants/*;
19 |
20 | RUN pip install enum34 ipaddress wheel && \
21 | pip install ansible ansible-lint
22 |
23 | COPY .ansible-lint /
24 |
25 | VOLUME ["/sys/fs/cgroup"]
26 |
27 | CMD ["/usr/sbin/init"]
28 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-etc-hosts/tests/Dockerfile.centos-7:
--------------------------------------------------------------------------------
1 | FROM centos:7
2 | ENV container=docker
3 |
4 | RUN yum -y install epel-release && \
5 | yum -y install gmp-devel libffi-devel openssl-devel python-crypto \
6 | python-devel python-pip python-setuptools python-virtualenv \
7 | redhat-rpm-config && \
8 | yum -y group install "Development Tools"
9 |
10 | # Install systemd -- See https://hub.docker.com/_/centos/
11 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
12 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
13 | rm -f /etc/systemd/system/*.wants/*;\
14 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
16 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
17 | rm -f /lib/systemd/system/basic.target.wants/*;\
18 | rm -f /lib/systemd/system/anaconda.target.wants/*;
19 |
20 | RUN pip install enum34 ipaddress wheel && \
21 | pip install ansible ansible-lint
22 |
23 | COPY .ansible-lint /
24 |
25 | VOLUME ["/sys/fs/cgroup"]
26 |
27 | CMD ["/usr/sbin/init"]
28 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/Dockerfile.fedora-24:
--------------------------------------------------------------------------------
1 | FROM fedora:24
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/Dockerfile.fedora-25:
--------------------------------------------------------------------------------
1 | FROM fedora:25
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/Dockerfile.fedora-26:
--------------------------------------------------------------------------------
1 | FROM fedora:26
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-timezone/README.md:
--------------------------------------------------------------------------------
1 | Role Name
2 | =========
3 |
4 | An [Ansible] role to configure timezone settings
5 |
6 | Build Status
7 | ------------
8 | [](https://travis-ci.org/mrlesmithjr/ansible-timezone)
9 |
10 | Requirements
11 | ------------
12 |
13 | None
14 |
15 | Role Variables
16 | --------------
17 |
18 | ```
19 | ---
20 | # defaults file for ansible-timezone
21 |
22 | # set your desired default timezone
23 |
24 | # timezone: 'EST5EDT'
25 | # timezone: 'America/New_York'
26 | timezone: 'UTC'
27 |
28 | timezone_update_hardware_clock: false
29 | ```
30 |
31 | Dependencies
32 | ------------
33 |
34 | None
35 |
36 | Example Playbook
37 | ----------------
38 |
39 | ```
40 | ---
41 | - hosts: all
42 | become: true
43 | vars:
44 | roles:
45 | - role: ansible-timezone
46 | tasks:
47 | ```
48 |
49 | License
50 | -------
51 |
52 | BSD
53 |
54 | Author Information
55 | ------------------
56 |
57 | Larry Smith Jr.
58 | - @mrlesmithjr
59 | - http://everythingshouldbevirtual.com
60 | - mrlesmithjr [at] gmail.com
61 |
62 | [Ansible]:
63 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Larry Smith Jr.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Larry Smith Jr.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-phpipam/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Larry Smith Jr.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tests/Dockerfile.fedora-24:
--------------------------------------------------------------------------------
1 | FROM fedora:24
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tests/Dockerfile.fedora-25:
--------------------------------------------------------------------------------
1 | FROM fedora:25
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tests/Dockerfile.fedora-26:
--------------------------------------------------------------------------------
1 | FROM fedora:26
2 | ENV container=docker
3 |
4 | RUN dnf -y install gmp-devel libffi-devel openssl-devel python-crypto \
5 | python-devel python-dnf python-pip python-setuptools python-virtualenv \
6 | redhat-rpm-config systemd && \
7 | dnf -y group install "C Development Tools and Libraries"
8 |
9 | # Install systemd -- See https://hub.docker.com/_/centos/
10 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
11 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
12 | rm -f /etc/systemd/system/*.wants/*;\
13 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
14 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
16 | rm -f /lib/systemd/system/basic.target.wants/*;\
17 | rm -f /lib/systemd/system/anaconda.target.wants/*;
18 |
19 | RUN pip install enum34 ipaddress wheel && \
20 | pip install ansible ansible-lint
21 |
22 | COPY .ansible-lint /
23 |
24 | VOLUME ["/sys/fs/cgroup"]
25 |
26 | CMD ["/usr/sbin/init"]
27 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-recursor/tests/Dockerfile.centos-7:
--------------------------------------------------------------------------------
1 | FROM centos:7
2 | ENV container=docker
3 |
4 | RUN yum -y install epel-release && \
5 | yum -y install gmp-devel libffi-devel openssl-devel python-crypto \
6 | python-devel python-pip python-setuptools python-virtualenv \
7 | redhat-rpm-config && \
8 | yum -y group install "Development Tools"
9 |
10 | # Install systemd -- See https://hub.docker.com/_/centos/
11 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
12 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
13 | rm -f /etc/systemd/system/*.wants/*;\
14 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
16 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
17 | rm -f /lib/systemd/system/basic.target.wants/*;\
18 | rm -f /lib/systemd/system/anaconda.target.wants/*;
19 |
20 | RUN pip install enum34 ipaddress wheel && \
21 | pip install ansible ansible-lint
22 |
23 | COPY .ansible-lint /
24 |
25 | VOLUME ["/sys/fs/cgroup"]
26 |
27 | CMD ["/usr/sbin/init"]
28 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Larry Smith Jr.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/tests/Dockerfile.centos-7:
--------------------------------------------------------------------------------
1 | FROM centos:7
2 | ENV container=docker
3 |
4 | RUN yum -y install epel-release && \
5 | yum -y install gmp-devel libffi-devel openssl-devel python-crypto \
6 | python-devel python-pip python-setuptools python-virtualenv \
7 | redhat-rpm-config && \
8 | yum -y group install "Development Tools"
9 |
10 | # Install systemd -- See https://hub.docker.com/_/centos/
11 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
12 | rm -f /lib/systemd/system/multi-user.target.wants/*;\
13 | rm -f /etc/systemd/system/*.wants/*;\
14 | rm -f /lib/systemd/system/local-fs.target.wants/*; \
15 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
16 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
17 | rm -f /lib/systemd/system/basic.target.wants/*;\
18 | rm -f /lib/systemd/system/anaconda.target.wants/*;
19 |
20 | RUN pip install enum34 ipaddress wheel && \
21 | pip install ansible ansible-lint
22 |
23 | COPY .ansible-lint /
24 |
25 | VOLUME ["/sys/fs/cgroup"]
26 |
27 | CMD ["/usr/sbin/init"]
28 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-bootstrap-python/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Larry Smith Jr.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Larry Smith Jr.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-mysql/README.md:
--------------------------------------------------------------------------------
1 | # ansible-mysql
2 |
3 | Ansible role to install/configure MySQL
4 |
5 | ## Build Status
6 |
7 | ### GitHub Actions
8 |
9 | 
10 |
11 | ### Travis CI
12 |
13 | [](https://travis-ci.org/mrlesmithjr/ansible-mysql)
14 |
15 | ## Requirements
16 |
17 | For any required Ansible roles, review:
18 | [requirements.yml](requirements.yml)
19 |
20 | ## Role Variables
21 |
22 | [defaults/main.yml](defaults/main.yml)
23 |
24 | ## Dependencies
25 |
26 | ## Example Playbook
27 |
28 | [playbook.yml](playbook.yml)
29 |
30 | ## License
31 |
32 | MIT
33 |
34 | ## Author Information
35 |
36 | Larry Smith Jr.
37 |
38 | - [@mrlesmithjr](https://twitter.com/mrlesmithjr)
39 | - [mrlesmithjr@gmail.com](mailto:mrlesmithjr@gmail.com)
40 | - [http://everythingshouldbevirtual.com](http://everythingshouldbevirtual.com)
41 |
42 | > NOTE: Repo has been created/updated using [https://github.com/mrlesmithjr/cookiecutter-ansible-role](https://github.com/mrlesmithjr/cookiecutter-ansible-role) as a template.
43 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-apache2/README.md:
--------------------------------------------------------------------------------
1 | # ansible-apache2
2 |
3 | Ansible role to install/configure Apache2
4 |
5 | ## Build Status
6 |
7 | ### GitHub Actions
8 |
9 | 
10 |
11 | ### Travis CI
12 |
13 | [](https://travis-ci.org/mrlesmithjr/ansible-apache2)
14 |
15 | ## Requirements
16 |
17 | For any required Ansible roles, review:
18 | [requirements.yml](requirements.yml)
19 |
20 | ## Role Variables
21 |
22 | [defaults/main.yml](defaults/main.yml)
23 |
24 | ## Dependencies
25 |
26 | ## Example Playbook
27 |
28 | [playbook.yml](playbook.yml)
29 |
30 | ## License
31 |
32 | MIT
33 |
34 | ## Author Information
35 |
36 | Larry Smith Jr.
37 |
38 | - [@mrlesmithjr](https://twitter.com/mrlesmithjr)
39 | - [mrlesmithjr@gmail.com](mailto:mrlesmithjr@gmail.com)
40 | - [http://everythingshouldbevirtual.com](http://everythingshouldbevirtual.com)
41 |
42 | > NOTE: Repo has been created/updated using [https://github.com/mrlesmithjr/cookiecutter-ansible-role](https://github.com/mrlesmithjr/cookiecutter-ansible-role) as a template.
43 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-rsyslog/README.md:
--------------------------------------------------------------------------------
1 | # ansible-rsyslog
2 |
3 | Ansible role to install/configure rsyslog
4 |
5 | ## Build Status
6 |
7 | ### GitHub Actions
8 |
9 | 
10 |
11 | ### Travis CI
12 |
13 | [](https://travis-ci.org/mrlesmithjr/ansible-rsyslog)
14 |
15 | ## Requirements
16 |
17 | For any required Ansible roles, review:
18 | [requirements.yml](requirements.yml)
19 |
20 | ## Role Variables
21 |
22 | [defaults/main.yml](defaults/main.yml)
23 |
24 | ## Dependencies
25 |
26 | ## Example Playbook
27 |
28 | [playbook.yml](playbook.yml)
29 |
30 | ## License
31 |
32 | MIT
33 |
34 | ## Author Information
35 |
36 | Larry Smith Jr.
37 |
38 | - [@mrlesmithjr](https://twitter.com/mrlesmithjr)
39 | - [mrlesmithjr@gmail.com](mailto:mrlesmithjr@gmail.com)
40 | - [http://everythingshouldbevirtual.com](http://everythingshouldbevirtual.com)
41 |
42 | > NOTE: Repo has been created/updated using [https://github.com/mrlesmithjr/cookiecutter-ansible-role](https://github.com/mrlesmithjr/cookiecutter-ansible-role) as a template.
43 |
--------------------------------------------------------------------------------
/Vagrant/roles/ansible-powerdns-authoritative/templates/pdns_records.sh.j2:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | {% if pdns_auth_records is defined %}
3 | {% for item in pdns_auth_records %}
4 | curl -X PATCH --data '{"rrsets": [ {
5 | "name": {% if item.name == "default" %}"{{ item.zone }}"{% else %}"{{ item.name }}.{{ item.zone }}"{% endif %}, "type": "{{ item.type }}", "changetype": "{{ item.changetype }}", "records": [
6 | {"content": "{{ item.content }}", "disabled": {{ item.disabled|lower }}, "name": {% if item.name == "default" %}"{{ item.zone }}"{% else %}"{{ item.name }}.{{ item.zone }}"{% endif %}, "ttl": {{ item.ttl }}, "type": "{{ item.type }}" {% if item.noprt is not defined and item.type == "A" or item.type == "AAAA" %}, "set-ptr": true{% endif %}, "priority": "{{ item.priority }}"}
7 | {% if item.content2 is defined %}
8 | , {"content": "{{ item.content2 }}", "disabled": {{ item.disabled|lower }}, "name": {% if item.name == "default" %}"{{ item.zone }}"{% else %}"{{ item.name }}.{{ item.zone }}"{% endif %}, "ttl": {{ item.ttl }}, "type": "{{ item.type }}", "priority": "{{ item.priority }}"}
9 | {% endif %}
10 | ]
11 | }
12 | ]}' {{ pdns_auth_curl_header }} {{ pdns_auth_api_url }}/{{ item.zone }}
13 | {% endfor %}
14 | {% endif %}
15 |
--------------------------------------------------------------------------------