コード例 #1
0
ファイル: kick.py プロジェクト: adblockplus/infrastructure
def updateClient(user, host, mode, tags):
    print 'Provisioning %s...' % host
    remoteCommand = 'sudo puppet agent%s%s' % (mode, tags or '')
    print 'Remote command is %s' % remoteCommand

    # Have to ignore errors here, Puppet will return non-zero for successful runs
    runCommand(user, host, remoteCommand, ignore_errors=True)
コード例 #2
0
ファイル: kick.py プロジェクト: saakai-dev/infrastructure
def updateClient(user, host, mode, tags):
    print 'Provisioning %s...' % host
    remoteCommand = 'sudo puppet agent%s%s' % (mode, tags or '')
    print 'Remote command is %s' % remoteCommand

    # Have to ignore errors here, Puppet will return non-zero for successful runs
    runCommand(user, host, remoteCommand, ignore_errors=True)
コード例 #3
0
ファイル: kick.py プロジェクト: adblockplus/infrastructure
def updateMaster(options):
    print 'Updating data on the puppet master...'
    remoteCommand = ' && '.join([
        'sudo hg pull -qu -R /etc/puppet/infrastructure',
        'sudo hg pull -qu -R /etc/puppet/infrastructure/modules/private',
        'sudo /etc/puppet/infrastructure/ensure_dependencies.py /etc/puppet/infrastructure',
    ])
    runCommand(options.user, options.remote, remoteCommand)
コード例 #4
0
def updateMaster(options):
    print 'Updating data on the puppet master...'
    remoteCommand = ' && '.join([
        'sudo hg pull -qu -R /etc/puppet/infrastructure',
        'sudo hg pull -qu -R /etc/puppet/infrastructure/modules/private',
        'sudo /etc/puppet/infrastructure/ensure_dependencies.py /etc/puppet/infrastructure',
    ])
    runCommand(options.user, options.remote, remoteCommand)
コード例 #5
0
def updateMaster(user):
  print 'Updating data on the puppet master...'
  remoteCommand = ' && '.join([
    'sudo hg pull -qu -R /etc/puppet/infrastructure',
    'sudo hg pull -qu -R /etc/puppet/infrastructure/modules/private',
    'sudo /etc/puppet/infrastructure/ensure_dependencies.py /etc/puppet/infrastructure',
  ])
  runCommand(user, "puppetmaster.adblockplus.org", remoteCommand)