Move deploy from source template files to templates/git
This commit is contained in:
parent
03bdfbae23
commit
864216f5b9
@ -392,7 +392,7 @@ def git_post_install(projects_yaml):
|
|||||||
for conf, files in configs.iteritems():
|
for conf, files in configs.iteritems():
|
||||||
shutil.copyfile(files['src'], files['dest'])
|
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)
|
perms=0o440)
|
||||||
|
|
||||||
neutron_api_context = {
|
neutron_api_context = {
|
||||||
@ -402,7 +402,8 @@ def git_post_install(projects_yaml):
|
|||||||
}
|
}
|
||||||
|
|
||||||
# NOTE(coreycb): Needs systemd support
|
# 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)
|
neutron_api_context, perms=0o644)
|
||||||
|
|
||||||
service_restart('neutron-server')
|
service_restart('neutron-server')
|
||||||
|
@ -272,9 +272,9 @@ class TestNeutronAPIUtils(CharmTestCase):
|
|||||||
'process_name': 'neutron-server',
|
'process_name': 'neutron-server',
|
||||||
}
|
}
|
||||||
expected = [
|
expected = [
|
||||||
call('neutron_sudoers', '/etc/sudoers.d/neutron_sudoers', {},
|
call('git/neutron_sudoers', '/etc/sudoers.d/neutron_sudoers', {},
|
||||||
perms=0o440),
|
perms=0o440),
|
||||||
call('upstart/neutron-server.upstart',
|
call('git/upstart/neutron-server.upstart',
|
||||||
'/etc/init/neutron-server.conf',
|
'/etc/init/neutron-server.conf',
|
||||||
neutron_api_context, perms=0o644),
|
neutron_api_context, perms=0o644),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user