Add deployed server bootstrap for RHEL
This is similar to the bootstrap for CentOS, except we don't set SELinux to permissive on RHEL. Change-Id: I52b8fa017ee2821d2fa91e5ec806a55fcb92566d Partially-implements: blueprint split-stack-software-configuration
This commit is contained in:
parent
98d1795278
commit
5461971b7e
13
deployed-server/deployed-server-bootstrap-rhel.sh
Normal file
13
deployed-server/deployed-server-bootstrap-rhel.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
yum install -y \
|
||||||
|
jq \
|
||||||
|
python-ipaddr \
|
||||||
|
openstack-puppet-modules \
|
||||||
|
os-net-config \
|
||||||
|
openvswitch \
|
||||||
|
python-heat-agent*
|
||||||
|
|
||||||
|
ln -s -f /usr/share/openstack-puppet/modules/* /etc/puppet/modules
|
22
deployed-server/deployed-server-bootstrap-rhel.yaml
Normal file
22
deployed-server/deployed-server-bootstrap-rhel.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
heat_template_version: ocata
|
||||||
|
|
||||||
|
description: 'Deployed Server Bootstrap Config'
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
|
||||||
|
server:
|
||||||
|
type: string
|
||||||
|
|
||||||
|
resources:
|
||||||
|
|
||||||
|
DeployedServerBootstrapConfig:
|
||||||
|
type: OS::Heat::SoftwareConfig
|
||||||
|
properties:
|
||||||
|
group: script
|
||||||
|
config: {get_file: deployed-server-bootstrap-rhel.sh}
|
||||||
|
|
||||||
|
DeployedServerBootstrapDeployment:
|
||||||
|
type: OS::Heat::SoftwareDeployment
|
||||||
|
properties:
|
||||||
|
config: {get_resource: DeployedServerBootstrapConfig}
|
||||||
|
server: {get_param: server}
|
@ -0,0 +1,7 @@
|
|||||||
|
# An environment that can be used with the deployed-server.yaml template to do
|
||||||
|
# initial bootstrapping of the deployed servers.
|
||||||
|
resource_registry:
|
||||||
|
OS::TripleO::DeployedServer::Bootstrap: ../deployed-server/deployed-server-bootstrap-rhel.yaml
|
||||||
|
|
||||||
|
parameter_defaults:
|
||||||
|
EnablePackageInstall: True
|
Loading…
Reference in New Issue
Block a user