Custom roles
This role installs and configure satellite. Also setup & configure firewalld and it’s rules.
satellite_version: "Digit"
- (Required) - satellite versionsatellite_admin: "String"
- (Required) - Satellite admin usernamesatellite_admin_password: "String"
- (Required) - Satellite admin passwordsatellite_arguments: [List]
- (Default=defaults/main.yml) - Additional arguments to satellite-installer
command.initial_satellite_org: "String"
- (Default=defaults/main.yml) - Initial satellite organization name.env_type: "String"
- (Required) - directory inside ./configs/{{ env_type }}, which will be used to keep pre & post setup files. firewall_services: [List]
- (Default=defaults/main.yml) - List of firewall services to enablefirewall_ports: [List]
- (Default=defaults/main.yml) - List of firewall ports to enable
satellite_version: 6.7
satellite_admin: <may be admin>
satellite_admin_password: <somethingstrong>"
firewall_services:
- ssh
- RH-Satellite-6
firewall_ports:
- 22/tcp
- 80/tcp
- 443/tcp
In case, you have some pre satellite package installation tasks then create following file in given path and write your tasks otherwise no need to create this file. Default is ignore if file is not exist.
In case, you have some post satellite package installation tasks then create following file in given path and write your tasks otherwise no need to create this file. Default is ignore if file is not exist.
In case, you have some pre satellite configuration (Just before satellite-installer command execution)
tasks then create following file in given path and write your tasks otherwise no need to create this file. Default is ignore if file is not exist.
In case, you have some post satellite configuration (Just after satellite-installer command execution finishes)
tasks then create following file in given path and write your tasks otherwise no need to create this file. Default is ignore if file is not exist.
install_satellite
- Consistent tag for all satellite install tasksconfigure_satellite
- For satellite setup tasksinstall_firewall
- For firewall tasks
## Tagged jobs
[user@node ~]$ ansible-playbook playbook.yml -e @./sample_vars.yml --tags install_satellite
## Skip tagged jobs
[user@node ~]$ ansible-playbook playbook.yml -e @./sample_vars.yml --skip-tags configure_satellite
How to use the role in playbook and variables are put in sample_vars.yml.
[user@node ~]$ cat sample_vars.yml
satellite_version: 6.7
satellite_admin: 'admin'
satellite_admin_password: 'changeme'
firewall_services:
- ssh
- RH-Satellite-6
firewall_ports:
- 22/tcp
- 80/tcp
- 443/tcp
[user@node ~]$ cat playbook.yml
- hosts: satellite.example.com
roles:
- satellite-install
[user@node ~]$ ansible-playbook playbook.yml -e @./sample_vars.yml
GPLv3
Mitesh The Mouse mitsharm@redhat.com