Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
WK-Public
jelastic-apache-conf
Commits
14d3c86e
Commit
14d3c86e
authored
Nov 11, 2019
by
Ole von Stuckrad
🌚
Browse files
Remove logging, use targetNodes
parent
1de00b26
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifest.yml
View file @
14d3c86e
...
...
@@ -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
:
-
node
Mission
:
${globals.target
}
-
node
Group
:
${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
:
-
node
Mission
:
${globals.target
}
-
node
Group
:
${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
:
-
node
Mission
:
${globals.target
}
-
node
Group
:
${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
:
-
node
Mission
:
${globals.target
}
-
node
Group
:
${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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment