Commit 14d3c86e authored by Ole von Stuckrad's avatar Ole von Stuckrad 🌚
Browse files

Remove logging, use targetNodes

parent 1de00b26
......@@ -53,9 +53,7 @@ onInstall:
- procedure: restartService
onUninstall:
- log:
- ${globals.target}
- cmd [${globals.target}]:
- cmd [${targetNodes.nodeGroup}]:
- "service httpd stop"
- "rm /etc/httpd/conf.d/${settings.vhost_name}.conf"
- "service httpd start"
......@@ -63,18 +61,15 @@ onUninstall:
procedures:
- id: addVhost
onCall:
- log: ${globals.target}
- executeShellCommands:
- log: ${globals.target}
- nodeMission: ${globals.target}
- nodeGroup: ${targetNodes.nodeGroup}
commands:
- wget -O /etc/httpd/conf.d/${settings.vhost_name}.conf ${baseUrl}vhost.conf
- id: saveVhostConfig
onCall:
- log: ${globals.target}
- if ( settings.environment_type == 'live'):
- executeShellCommands:
- nodeMission: ${globals.target}
- nodeGroup: ${targetNodes.nodeGroup}
commands:
- sed -i "s/{VHOST_NAME}/${settings.vhost_name}/g" /etc/httpd/conf.d/${settings.vhost_name}.conf
- sed -i "s/{ENV_TYPE}/dg${settings.environment_type}/g" /etc/httpd/conf.d/${settings.vhost_name}.conf
......@@ -83,8 +78,7 @@ procedures:
user: apache
- if ( settings.environment_type == 'stage'):
- executeShellCommands:
- log: ${globals.target}
- nodeMission: ${globals.target}
- nodeGroup: ${targetNodes.nodeGroup}
commands:
- sed -i "s/{VHOST_NAME}/${settings.vhost_name}/g" /etc/httpd/conf.d/${settings.vhost_name}.conf
- sed -i "s/{ENV_TYPE}/dg${settings.environment_type}/g" /etc/httpd/conf.d/${settings.vhost_name}.conf
......@@ -93,7 +87,7 @@ procedures:
user: apache
- if ( settings.environment_type == 'preprod'):
- executeShellCommands:
- nodeMission: ${globals.target}
- nodeGroup: ${targetNodes.nodeGroup}
commands:
- sed -i "s/{VHOST_NAME}/${settings.vhost_name}/g" /etc/httpd/conf.d/${settings.vhost_name}.conf
- sed -i "s/{ENV_TYPE}/dg${settings.environment_type}/g" /etc/httpd/conf.d/${settings.vhost_name}.conf
......@@ -102,10 +96,9 @@ procedures:
user: apache
- id: setupWebFolder
onCall:
- log: ${globals.target}
- if ( settings.environment_type == 'live'):
- executeShellCommands:
- nodeMission: ${globals.target}
- nodeGroup: ${targetNodes.nodeGroup}
commands:
- mkdir -p /var/www/webroot/initial_root/web
- touch /var/www/webroot/initial_root/web/index.html
......@@ -115,8 +108,7 @@ procedures:
- if ( settings.environment_type == 'stage'):
- executeShellCommands:
- log: ${globals.target}
- nodeMission: ${globals.target}
- nodeGroup: ${targetNodes.nodeGroup}
commands:
- mkdir -p /var/www/webroot/initial_root/web
- touch /var/www/webroot/initial_root/web/index.html
......@@ -126,7 +118,7 @@ procedures:
- if ( settings.environment_type == 'preprod'):
- executeShellCommands:
- nodeMission: ${globals.target}
- nodeGroup: ${targetNodes.nodeGroup}
commands:
- mkdir -p /var/www/webroot/initial_root/web
- touch /var/www/webroot/initial_root/web/index.html
......@@ -135,10 +127,8 @@ procedures:
user: apache
- id: restartService
onCall:
- log: ${globals.target}
- executeShellCommands:
- log: ${globals.target}
- nodeMission: ${globals.target}
- nodeGroup: ${targetNodes.nodeGroup}
commands:
- service httpd restart
user: root
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment