Use file resource to manage build copy
We had a complicated series of execs to build and copy files into the docroot. Unfortunately these haven't worked as expected but we can simplify the puppet by using a file resource to manage the copy of the build for us. Change-Id: I55c521bc7b5f24e46932c11cece4376e55f50767
This commit is contained in:
parent
559d6b83c7
commit
40e79ffdbb
@ -24,18 +24,15 @@ define openstack_health::site(
|
|||||||
api_endpoint => $api_endpoint
|
api_endpoint => $api_endpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
exec {'move-static-files':
|
|
||||||
command => "mv ${openstack_health::source_dir}/build ${httproot}",
|
|
||||||
path => ['/usr/local/bin/', '/usr/bin/', '/bin/'],
|
|
||||||
subscribe => Exec['build-static-files'],
|
|
||||||
refreshonly => true,
|
|
||||||
}
|
|
||||||
|
|
||||||
file {$httproot:
|
file {$httproot:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'openstack_health',
|
owner => 'openstack_health',
|
||||||
group => 'openstack_health',
|
group => 'openstack_health',
|
||||||
mode => '0755',
|
mode => '0644',
|
||||||
require => Exec['move-static-files']
|
recurse => true,
|
||||||
|
purge => true,
|
||||||
|
force => true,
|
||||||
|
source => "${openstack_health::source_dir}/build",
|
||||||
|
require => Exec['build-static-files']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user