Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
suitpuppet
su_apache
Commits
7c21e57d
Commit
7c21e57d
authored
Sep 08, 2020
by
Adam Lewenberg
Browse files
more tries
parent
2cbf2f23
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/module.pp
View file @
7c21e57d
...
...
@@ -33,6 +33,6 @@ define su_apache::module(
path
=>
'/usr/sbin:/usr/bin'
,
require
=>
Package
[
'apache'
],
unless
=>
"[
$condition
]"
,
notify
=>
Exec
[
'su_apache_reload'
];
}
# notify => Exec['su_apache_reload'];
}
manifests/site.pp
View file @
7c21e57d
...
...
@@ -50,7 +50,7 @@ define su_apache::site(
command
=>
"a2ensite
${site_id}
"
,
path
=>
'/usr/bin:/usr/sbin'
,
creates
=>
"/etc/apache2/sites-enabled/
${site_id}
"
,
require
=>
[
Class
[
'su_
apache'
],
File
[
$realname
]
],
require
=>
[
Package
[
'
apache'
],
File
[
$realname
]
],
notify
=>
Exec
[
'su_apache_reload'
],
}
}
elsif
(
$ensure
==
'absent'
)
{
...
...
@@ -58,7 +58,7 @@ define su_apache::site(
command
=>
"a2dissite
${site_id}
"
,
unless
=>
"[ ! -e '/etc/apache2/sites-enabled/
${site_id}
' ]"
,
path
=>
'/usr/bin:/usr/sbin'
,
require
=>
Class
[
'su_
apache'
],
require
=>
Package
[
'
apache'
],
notify
=>
Exec
[
'su_apache_reload'
],
}
}
...
...
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