Move deploy from source template files to templates/git

This commit is contained in:
Corey Bryant 2015-04-13 13:49:53 +00:00
parent 9985e567d8
commit d33070988d
5 changed files with 8 additions and 8 deletions

View File

@ -603,13 +603,13 @@ def git_post_install(projects_yaml):
os.chown('/etc/cinder/api-paste.ini', uid, gid)
os.chown('/etc/cinder/policy.json', uid, gid)
render('cinder_tgt.conf', '/etc/tgt/conf.d', {}, owner='cinder',
group='cinder', perms=0o644)
render('cinder.conf', '/etc/cinder/cinder.conf', {}, owner='cinder',
group='cinder', perms=0o644)
render('logging.conf', '/etc/cinder/logging.conf', {}, owner='cinder',
render('git/cinder_tgt.conf', '/etc/tgt/conf.d', {}, owner='cinder',
group='cinder', perms=0o644)
render('cinder_sudoers', '/etc/sudoers.d/cinder_sudoers', {},
render('git/logging.conf', '/etc/cinder/logging.conf', {}, owner='cinder',
group='cinder', perms=0o644)
render('git/cinder_sudoers', '/etc/sudoers.d/cinder_sudoers', {},
owner='root', group='root', perms=0o440)
os.chmod('/etc/sudoers.d', 0o750)

View File

@ -638,13 +638,13 @@ class TestCinderUtils(CharmTestCase):
'log_file': '/var/log/cinder/cinder-volume.log',
}
expected = [
call('cinder_tgt.conf', '/etc/tgt/conf.d', {}, owner='cinder',
group='cinder', perms=0o644),
call('cinder.conf', '/etc/cinder/cinder.conf', {}, owner='cinder',
group='cinder', perms=0o644),
call('logging.conf', '/etc/cinder/logging.conf', {},
call('git/cinder_tgt.conf', '/etc/tgt/conf.d', {}, owner='cinder',
group='cinder', perms=0o644),
call('git/logging.conf', '/etc/cinder/logging.conf', {},
owner='cinder', group='cinder', perms=0o644),
call('cinder_sudoers', '/etc/sudoers.d/cinder_sudoers', {},
call('git/cinder_sudoers', '/etc/sudoers.d/cinder_sudoers', {},
owner='root', group='root', perms=0o440),
call('git.upstart', '/etc/init/cinder-api.conf',
cinder_api_context, perms=0o644,