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:
Clark Boylan 2015-10-21 15:49:10 -07:00
parent 559d6b83c7
commit 40e79ffdbb
1 changed files with 6 additions and 9 deletions

View File

@ -24,18 +24,15 @@ define openstack_health::site(
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:
ensure => directory,
owner => 'openstack_health',
group => 'openstack_health',
mode => '0755',
require => Exec['move-static-files']
mode => '0644',
recurse => true,
purge => true,
force => true,
source => "${openstack_health::source_dir}/build",
require => Exec['build-static-files']
}
}