Skip to content

Commit 02035a0

Browse files
author
Tim Meusel
committed
add refreshonly for selinux handling
1 parent e78f246 commit 02035a0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

manifests/unicorn.pp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@
7676
path => '/tmp/nginx.te',
7777
ensure => file,
7878
content => template('puppet/unicorn_selinux_template'),
79+
notify => Exec['building_selinux_module_from_template'],
7980
} ->
80-
exec { 'building selinux module from template':
81-
path => [ "/usr/bin", "/usr/local/bin" ],
82-
command => 'checkmodule -M -m -o /tmp/nginx.mod /tmp/nginx.te'
81+
exec { 'building_selinux_module_from_template':
82+
path => [ "/usr/bin", "/usr/local/bin" ],
83+
command => 'checkmodule -M -m -o /tmp/nginx.mod /tmp/nginx.te',
84+
refreshonly => true,
8385
} ->
8486
exec { 'building selinux policy package from module':
8587
path => [ "/usr/bin", "/usr/local/bin" ],

0 commit comments

Comments
 (0)