Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @roles('debian')
- @task
- def setup_ntp():
- ''' Setup ntp servers
- '''
- env.ntp_server = 'foo.bar'
- template_dir = os.path.join(os.path.dirname(__file__)) + '/OS/debian/etc/'
- source = template_dir + 'ntp.conf.j2'
- dest = '/etc/ntp.conf'
- files.upload_template(source, dest, context=env, use_jinja=True, template_dir=template_dir)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement