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)
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)
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')
def it_generates_a_gem_install_command_without_a_version(): assert 'gem install mygem --no-ri --no-rdoc' == _gem_install('mygem')
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')