Skip to content

Instantly share code, notes, and snippets.

Ramin K rkhatibi

  • SnappyTV Inc
  • San Francisco, CA
Block or report user

Report or block rkhatibi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View default.pp
import 'mysql'
import 'apache'
node default {
include users
include db
include apache_server
exec {"apt-update":
command => "apt-get update",
View createdb.pp
define mysql::createdb {
exec { "create-${name}-db":
unless => "mysql -uroot -p${config::mysqlRootPassword} ${name}",
command => "mysql -uroot -p${config::mysqlRootPassword} -e \"create database ${name}; grant all on ${name}.* to ${config::dbUser}@localhost identified by '${config::dbPassword}';\"",
require => Service["mysql"],
View gist:2514198
class config {
include config::install, config::config, config::service
Class['puppet::service'] -> Class['config::install']
View gist:2514196
class config {
include config::install, config::config, config::service
Class['config::install'] -> Class['puppet::service']
View gist:2514092
class hostgroup::frontend {
include passenger
include nodejs
include nrpe::rubyprocs
class passenger {
include apache
View gist:2511951
class apache::params {
$vgname = 'vg01'
$lvname = 'wwwlv'
$lvsize = '2G'
$fstype = 'ext4'
$fsname = "/dev/${vgname}/${lvname}"
View gist:2484287
file { '/etc/yum.repos.d/':
ensure => directory,
mode => '0755',
force => true,
purge => true,
recurse => true,
rkhatibi / gist:2345614
Created Apr 9, 2012 — forked from ranguard/gist:2345549
How to use the same list in puppet for multiple locations
View gist:2345614
$perl_modules = [ 'Data::Pageset', 'perl-module-b' ]
perlbrew::install_modules {
perl => 'a-version-of-perl'
perlbrew::install_modules {
View gist:1895471
class sshd::data {
$enable = extlookup('sshd_enable', 'present')
class sshd {
include sshd::params, sshd::data
You can’t perform that action at this time.