1 heat_template_version: ocata
4 RHEL Registration and unregistration software deployments.
6 # Note extra parameters can be defined, then passed data via the
7 # environment parameter_defaults, without modifying the parent template
11 # To be defined via a local or global environment in parameter_defaults
12 rhel_reg_activation_key:
22 rhel_reg_machine_name:
38 rhel_reg_service_level:
48 rhel_reg_http_proxy_host:
50 rhel_reg_http_proxy_port:
52 rhel_reg_http_proxy_username:
54 rhel_reg_http_proxy_password:
60 type: OS::Heat::SoftwareConfig
64 - name: REG_ACTIVATION_KEY
65 - name: REG_AUTO_ATTACH
67 - name: REG_ENVIRONMENT
69 - name: REG_MACHINE_NAME
76 - name: REG_SERVER_URL
77 - name: REG_SERVICE_LEVEL
82 - name: REG_HTTP_PROXY_HOST
83 - name: REG_HTTP_PROXY_PORT
84 - name: REG_HTTP_PROXY_USERNAME
85 - name: REG_HTTP_PROXY_PASSWORD
86 config: {get_file: scripts/rhel-registration}
88 RHELRegistrationDeployment:
89 type: OS::Heat::SoftwareDeployment
91 name: RHELRegistrationDeployment
92 server: {get_param: server}
93 config: {get_resource: RHELRegistration}
94 actions: ['CREATE'] # Only do this on CREATE
96 REG_ACTIVATION_KEY: {get_param: rhel_reg_activation_key}
97 REG_AUTO_ATTACH: {get_param: rhel_reg_auto_attach}
98 REG_BASE_URL: {get_param: rhel_reg_base_url}
99 REG_ENVIRONMENT: {get_param: rhel_reg_environment}
100 REG_FORCE: {get_param: rhel_reg_force}
101 REG_MACHINE_NAME: {get_param: rhel_reg_machine_name}
102 REG_ORG: {get_param: rhel_reg_org}
103 REG_PASSWORD: {get_param: rhel_reg_password}
104 REG_POOL_ID: {get_param: rhel_reg_pool_id}
105 REG_RELEASE: {get_param: rhel_reg_release}
106 REG_REPOS: {get_param: rhel_reg_repos}
107 REG_SAT_URL: {get_param: rhel_reg_sat_url}
108 REG_SERVER_URL: {get_param: rhel_reg_server_url}
109 REG_SERVICE_LEVEL: {get_param: rhel_reg_service_level}
110 REG_USER: {get_param: rhel_reg_user}
111 REG_TYPE: {get_param: rhel_reg_type}
112 REG_METHOD: {get_param: rhel_reg_method}
113 REG_SAT_REPO: {get_param: rhel_reg_sat_repo}
114 REG_HTTP_PROXY_HOST: {get_param: rhel_reg_http_proxy_host}
115 REG_HTTP_PROXY_PORT: {get_param: rhel_reg_http_proxy_port}
116 REG_HTTP_PROXY_USERNAME: {get_param: rhel_reg_http_proxy_username}
117 REG_HTTP_PROXY_PASSWORD: {get_param: rhel_reg_http_proxy_password}
120 type: OS::Heat::SoftwareConfig
123 config: {get_file: scripts/rhel-unregistration}
127 RHELUnregistrationDeployment:
128 type: OS::Heat::SoftwareDeployment
130 name: RHELUnregistrationDeployment
131 server: {get_param: server}
132 config: {get_resource: RHELUnregistration}
133 actions: ['DELETE'] # Only do this on DELETE
135 REG_METHOD: {get_param: rhel_reg_method}
139 description: Deployment reference, used to trigger puppet apply on changes
140 value: {get_attr: [RHELRegistrationDeployment, deploy_stdout]}