Satellite 6 Install WIP
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
#Satellite deployment
|
||||
|
||||
This playbook install all dependecies required by satellite, register RHN,
|
||||
install satellite, and create some basic configuration of satellite.
|
||||
|
||||
##Configuration
|
||||
|
||||
You have to specify a lot of variables for satellite-deployment role.
|
||||
This playbook assumes that you set all these variables in some variable file
|
||||
and its path you have to pass as parameter: ``satellite-deployment-vars``
|
||||
|
||||
##Parameters
|
||||
|
||||
- **satellite-deployment-vars**
|
||||
This parameter should contains path to variable file which will describe
|
||||
all related variables for your Satellite server.
|
||||
For example: ./vars/brq-sat-instance.yml which is relative path from
|
||||
playbook.
|
||||
You can see examples in [example-vars.yml](./vars/example-vars.yml)
|
||||
|
||||
|
||||
##Requirements
|
||||
|
||||
- requirements are defined in [requirements.yml](./requirements.yml)
|
||||
- for instll all requirements pleas run:
|
||||
``ansible-galaxy install -f -r requirements.yml -p roles/``
|
||||
|
||||
##Execution
|
||||
|
||||
- For execute playbook with whole process of deployment run:
|
||||
``ansible-playbook -u root -i host.target -e
|
||||
'{satellite_deployment_vars: ./vars/path_to_your_vars.yml}' ./config.yml``
|
||||
|
||||
- You can also only update or run specific ation with scpecify appropriate
|
||||
tags:
|
||||
``ansible-playbook -u root -i host.target -e
|
||||
'{satellite_deployment_vars: ./vars/path_to_your_vars.yml}'
|
||||
--tags=update_stallite ./config.yml``
|
||||
|
||||
you can also exclude some tags with ``--skip-tags`` parameter of
|
||||
ansible-playbook command.
|
||||
|
||||
##Tags
|
||||
|
||||
- **firewall**: set firewall
|
||||
- **install_satellite**: install satellite
|
||||
- **update_satellite**: update satellite
|
||||
- **satellite_deployment_repositories**: deploy repositories
|
||||
- **rhn**: register rhn
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- hosts: satellite-server
|
||||
roles:
|
||||
- role: 'ntp'
|
||||
ntp_server:
|
||||
- '0.pool.ntp.org'
|
||||
- role: "satellite-deployment"
|
||||
vars_files:
|
||||
- "{{ satellite_deployment_vars }}"
|
||||
@@ -0,0 +1,2 @@
|
||||
[satellite]
|
||||
fqdn.of.your.host satellite_deployment_version=6.2
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- src: bennojoy.ntp
|
||||
name: ntp
|
||||
- src: https://github.com/petr-balogh/satellite-deployment.git
|
||||
# version is draft for testing before we push changes to master
|
||||
version: draft
|
||||
name: satellite-deployment
|
||||
@@ -0,0 +1,59 @@
|
||||
---
|
||||
# MY SATELLITE ENVIRONMENT VARIABLES
|
||||
# main vars
|
||||
satellite_deployment_hostname_short: "sat"
|
||||
satellite_deployment_hostname_full: "sat.domain.org"
|
||||
satellite_deployment_admin_username: "admin"
|
||||
satellite_deployment_admin_password: "123456"
|
||||
satellite_deployment_organization: "ORG"
|
||||
satellite_deployment_location: "BRNO"
|
||||
|
||||
# network
|
||||
satellite_deployment_ip_address: "10.35.184.33"
|
||||
satellite_deployment_network_address: "10.35.184.32"
|
||||
satellite_deployment_net_prefix: "27"
|
||||
satellite_deployment_gw_address: "10.35.184.62"
|
||||
satellite_deployment_net_interface: "eth1"
|
||||
satellite_deployment_dhcp_interface: "{{ satellite_deployment_net_interface }}"
|
||||
satellite_deployment_dns_interface: "{{ satellite_deployment_net_interface }}"
|
||||
satellite_deployment_dns_forwarder: "10.35.64.1"
|
||||
satellite_deployment_dns_zone: "sat.domain.com"
|
||||
satellite_deployment_dns_reverse_zone: "64.35.10.in-addr.arpa"
|
||||
satellite_deployment_dhcp_start: "10.35.184.34"
|
||||
satellite_deployment_dhcp_end: "10.35.184.61"
|
||||
|
||||
#satellite_deployment_plugin_ports
|
||||
|
||||
|
||||
# install
|
||||
satellite_deployment_plugin_packages:
|
||||
- "foreman-discovery-image"
|
||||
|
||||
# registration vars
|
||||
satellite_deployment_rhn_user: "rhn_user"
|
||||
satellite_deployment_rhn_password: "RhnPassW0rD"
|
||||
|
||||
# answers for sattelite installer
|
||||
satellite_deployment_answers:
|
||||
"foreman-initial-organization": "{{ satellite_deployment_organization }}"
|
||||
"foreman-initial-location": "{{ satellite_deployment_location }}"
|
||||
"foreman-admin-username": "{{ satellite_deployment_admin_username }}"
|
||||
"foreman-admin-password": "{{ satellite_deployment_admin_password }}"
|
||||
"foreman-proxy-dns": "true"
|
||||
"foreman-proxy-dns-interface": "{{ satellite_deployment_dns_interface }}"
|
||||
"foreman-proxy-dns-zone": "{{ satellite_deployment_dns_zone }}"
|
||||
"foreman-proxy-dns-forwarders": "{{ satellite_deployment_dns_forwarder }}"
|
||||
"foreman-proxy-dns-reverse": "{{ satellite_deployment_dns_reverse_zone }}"
|
||||
"foreman-proxy-dhcp": "true"
|
||||
"foreman-proxy-dhcp-interface": "{{ satellite_deployment_dhcp_interface }}"
|
||||
"foreman-proxy-dhcp-range": "{{ satellite_deployment_dhcp_start }}
|
||||
{{ satellite_deployment_dhcp_end }}"
|
||||
"foreman-proxy-dhcp-gateway": "{{ satellite_deployment_gw_address }}"
|
||||
"foreman-proxy-dhcp-nameservers": "{{ satellite_deployment_ip_address }}"
|
||||
"foreman-proxy-tftp": "true"
|
||||
"foreman-proxy-tftp-servername": "{{ satellite_deployment_hostname_full }}"
|
||||
"foreman-proxy-puppetca": "true"
|
||||
"capsule-puppet": "true"
|
||||
|
||||
# configure_satellite:
|
||||
satellite_deployment_manifest_path: "http://my.local.server/sat-manifest.zip"
|
||||
Reference in New Issue
Block a user