Skip to content

Instantly share code, notes, and snippets.

@big-samantha
Created May 12, 2016 05:07
Show Gist options
  • Select an option

  • Save big-samantha/e7d8665b307d91076a661b63210bfabe to your computer and use it in GitHub Desktop.

Select an option

Save big-samantha/e7d8665b307d91076a661b63210bfabe to your computer and use it in GitHub Desktop.
class packages {
package { 'vim':
ensure => present,
}
package { 'git':
ensure => present,
}
package { 'somethingelse':
ensure => present,
}
}
@ramercado

Copy link
Copy Markdown

class add_user {
user { 'monitor' :
ensure => 'installed',
managehome => true,
gid => '500',
home => '/home/monitor',
shell => '/bin/bash',
}
}

$packages = ['vim','git','curl']

package { #packages:
require => Exec ['yum update'],
ensure=> installed,
}

file { '/home/monitor/scr':
source => "/home/monitor/scr/my_memory_check",
recurse => true,
}

service { 'vim' :
ensure => running,
enable => true,
}

service { 'curl' :
ensure => running,
enable => true,
}

service { 'git' :
ensure => running,
enable => true,
}

class misc {
file { '/voyagertest01':
ensure => 'https://github.com/ramercado/VoyagerTask.git/voyagertest01.md',
target => '/home/monitor/scr/my_memory_check',
force => true,
}
}

node {
apache {

  conf => "https://github.com/ramercado/VoyagerTask.git/voyagertest01.md"

}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment