Skip to content

Instantly share code, notes, and snippets.

@btisdall
Created September 2, 2012 16:01

Revisions

  1. btisdall created this gist Sep 2, 2012.
    36 changes: 36 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    # development.pp
    stage { 'req-install': before => Stage['rvm-install'] }

    class misc {
    package {
    [
    'vim',
    ]:
    ensure => installed,
    }
    }

    class requirements {
    group { "puppet": ensure => "present", }
    exec { "apt-update":
    command => "/usr/bin/apt-get -y update",
    }
    }

    class installrvm {
    include rvm
    rvm::system_user { vagrant: ; }
    }

    class installruby {
    rvm_system_ruby {
    'ruby-1.9.3-p194':
    ensure => 'present';
    }
    }

    class { requirements: stage => "req-install" }
    class { installrvm: }
    class { installruby: require => Class[Installrvm] }
    class { misc: }
    class { nginx: }