Esempio n. 1
0
def install():
    """
    Install Puppet and its configs without any agent or master.
    """
    sudo('apt-get update -qq')
    sudo('apt-get -y -q install rubygems git')

    puppet_version = env.get('loom_puppet_version')
    sudo(_gem_install('puppet', version=puppet_version))

    librarian_version = env.get('loom_librarian_version')
    sudo(_gem_install('librarian-puppet', version=librarian_version))

    # http://docs.puppetlabs.com/guides/installation.html
    sudo('puppet resource group puppet ensure=present')
    sudo("puppet resource user puppet ensure=present gid=puppet shell='/sbin/nologin'")
    execute(update_configs)
Esempio n. 2
0
def install():
    """
    Install Puppet and its configs without any agent or master.
    """
    sudo('apt-get update -qq')
    sudo('apt-get -y -q install rubygems git')

    puppet_version = env.get('loom_puppet_version')
    sudo(_gem_install('puppet', version=puppet_version))

    librarian_version = env.get('loom_librarian_version')
    sudo(_gem_install('librarian-puppet', version=librarian_version))

    # http://docs.puppetlabs.com/guides/installation.html
    sudo('puppet resource group puppet ensure=present')
    sudo(
        "puppet resource user puppet ensure=present gid=puppet shell='/sbin/nologin'"
    )
    execute(update_configs)
Esempio n. 3
0
 def it_generates_a_gem_install_comamnd_with_a_version():
     assert 'gem install mygem -v 3.2.1 --no-ri --no-rdoc' == _gem_install(
         'mygem', '3.2.1')
Esempio n. 4
0
 def it_generates_a_gem_install_command_without_a_version():
     assert 'gem install mygem --no-ri --no-rdoc' == _gem_install('mygem')
Esempio n. 5
0
 def it_generates_a_gem_install_comamnd_with_a_version():
     assert 'gem install mygem -v 3.2.1 --no-ri --no-rdoc' == _gem_install('mygem', '3.2.1')
Esempio n. 6
0
 def it_generates_a_gem_install_command_without_a_version():
     assert 'gem install mygem --no-ri --no-rdoc' == _gem_install('mygem')