Move deploy from source template files to templates/git

This commit is contained in:
Corey Bryant 2015-04-13 14:06:14 +00:00
parent 03bdfbae23
commit 864216f5b9
4 changed files with 5 additions and 4 deletions

View File

@ -392,7 +392,7 @@ def git_post_install(projects_yaml):
for conf, files in configs.iteritems():
shutil.copyfile(files['src'], files['dest'])
render('neutron_sudoers', '/etc/sudoers.d/neutron_sudoers', {},
render('git/neutron_sudoers', '/etc/sudoers.d/neutron_sudoers', {},
perms=0o440)
neutron_api_context = {
@ -402,7 +402,8 @@ def git_post_install(projects_yaml):
}
# NOTE(coreycb): Needs systemd support
render('upstart/neutron-server.upstart', '/etc/init/neutron-server.conf',
render('git/upstart/neutron-server.upstart',
'/etc/init/neutron-server.conf',
neutron_api_context, perms=0o644)
service_restart('neutron-server')

View File

@ -272,9 +272,9 @@ class TestNeutronAPIUtils(CharmTestCase):
'process_name': 'neutron-server',
}
expected = [
call('neutron_sudoers', '/etc/sudoers.d/neutron_sudoers', {},
call('git/neutron_sudoers', '/etc/sudoers.d/neutron_sudoers', {},
perms=0o440),
call('upstart/neutron-server.upstart',
call('git/upstart/neutron-server.upstart',
'/etc/init/neutron-server.conf',
neutron_api_context, perms=0o644),
]