Created
September 6, 2018 09:41
-
-
Save evrardjp/d98eb1b5c6b36df02418f717a8ffb8ce to your computer and use it in GitHub Desktop.
heat stack issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ses_config_salt_minion: | |
type: OS::Heat::SoftwareConfig | |
properties: | |
config: | |
str_replace: | |
params: | |
$salt_master_ip: { get_attr: [ses-admin, networks, { get_resource: ses_network }, 0]} | |
$snet: { get_resource: ses_network} | |
$sfull: { get_attr: [ses-admin, networks] } | |
$sextract: { get_attr: [ses-admin, networks, { get_resource: ses_network}] } | |
template: | | |
#!/bin/bash | |
set -e | |
# ntp | |
zypper -n in -l ntp | |
cat <<EOF > /etc/ntp.conf | |
server ntp1.suse.de | |
server ntp2.suse.de | |
server ntp3.suse.de | |
EOF | |
/usr/bin/systemctl enable --now ntpd.service | |
# salt-minion | |
zypper -n in -l salt-minion hwinfo iptables | |
cat <<EOF > /etc/salt/minion.d/master.conf | |
master: $salt_master_ip | |
EOF | |
cat << EOF > /opt/log | |
# DEBUG snet | |
$snet | |
# DEBUG sfull | |
$sfull | |
# DEBUG sextract | |
$sextract | |
EOF | |
systemctl enable salt-minion.service | |
systemctl start salt-minion.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DEBUG snet | |
7b4d0d5c-ba49-4292-b0b6-afabd4466a67 | |
# DEBUG sfull | |
{"7b4d0d5c-ba49-4292-b0b6-afabd4466a67": ["192.168.222.11", "10.86.0.28"], "ccp-30364-caasp-int-net": ["172.28.0.11"], "ccp-30364-ses-4521-ses_network-yacf4lgkeqkz": ["192.168.222.11", "10.86.0.28"], "4b898ac0-d0b5-4e32-9a22-068e5d79065f": ["172.28.0.11"]} | |
# DEBUG sextract |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment