include

Untitled

Dec 17th, 2013
556
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @roles('debian')
  2. @task
  3. def setup_ntp():
  4.     ''' Setup ntp servers
  5.     '''
  6.  
  7.     env.ntp_server = 'foo.bar'
  8.  
  9.     template_dir = os.path.join(os.path.dirname(__file__)) + '/OS/debian/etc/'
  10.  
  11.     source = template_dir + 'ntp.conf.j2'
  12.     dest = '/etc/ntp.conf'
  13.  
  14.     files.upload_template(source, dest, context=env, use_jinja=True, template_dir=template_dir)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×