Setup puppet provisioning for vagrant vm
This commit is contained in:
parent
6ce5ace6f4
commit
fb772f68bd
3 changed files with 71 additions and 16 deletions
21
Vagrantfile
vendored
21
Vagrantfile
vendored
|
@ -4,21 +4,10 @@
|
||||||
Vagrant::Config.run do |config|
|
Vagrant::Config.run do |config|
|
||||||
config.vm.box = "precise32"
|
config.vm.box = "precise32"
|
||||||
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
|
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
|
||||||
config.vm.network :hostonly, "192.168.76.76"
|
config.vm.network :hostonly, "192.168.3.76"
|
||||||
|
|
||||||
# # group { "puppet":
|
config.vm.provision :puppet do |puppet|
|
||||||
# # ensure => "present",
|
puppet.manifests_path = "puppet/manifests"
|
||||||
# # }
|
puppet.manifest_file = "default.pp"
|
||||||
# #
|
end
|
||||||
# # File { owner => 0, group => 0, mode => 0644 }
|
|
||||||
# #
|
|
||||||
# # file { '/etc/motd':
|
|
||||||
# # content => "Welcome to your Vagrant-built virtual machine!
|
|
||||||
# # Managed by Puppet.\n"
|
|
||||||
# # }
|
|
||||||
#
|
|
||||||
# config.vm.provision :puppet do |puppet|
|
|
||||||
# puppet.manifests_path = "manifests"
|
|
||||||
# puppet.manifest_file = "precise32.pp"
|
|
||||||
# end
|
|
||||||
end
|
end
|
||||||
|
|
16
puppet/files/krb5.conf
Normal file
16
puppet/files/krb5.conf
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
[libdefaults]
|
||||||
|
default_realm = MSU.EDU
|
||||||
|
dns_lookup_realm = true
|
||||||
|
dns_lookup_kdc = true
|
||||||
|
verify_ap_req_nofail = false
|
||||||
|
|
||||||
|
[realms]
|
||||||
|
MSU.EDU = {
|
||||||
|
admin_server = kerberos-dev.idm.msu.edu
|
||||||
|
kpasswd_server = kerberos-dev.idm.msu.edu
|
||||||
|
}
|
||||||
|
|
||||||
|
[domain_realm]
|
||||||
|
.msu.edu = MSU.EDU
|
||||||
|
msu.edu = MSU.EDU
|
||||||
|
|
50
puppet/manifests/default.pp
Normal file
50
puppet/manifests/default.pp
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
# Misc
|
||||||
|
exec { 'apt-get update':
|
||||||
|
command => '/usr/bin/apt-get update',
|
||||||
|
}
|
||||||
|
|
||||||
|
package { 'build-essential':
|
||||||
|
ensure => installed,
|
||||||
|
}
|
||||||
|
|
||||||
|
# Database
|
||||||
|
package { ['sqlite3', 'libsqlite3-dev']:
|
||||||
|
ensure => installed,
|
||||||
|
}
|
||||||
|
|
||||||
|
# Ruby and Rails
|
||||||
|
package { 'ruby1.9.3':
|
||||||
|
ensure => installed,
|
||||||
|
require => Exec['apt-get update'],
|
||||||
|
}
|
||||||
|
|
||||||
|
package { 'rails':
|
||||||
|
ensure => installed,
|
||||||
|
provider => 'gem',
|
||||||
|
require => Package['ruby1.9.3'],
|
||||||
|
}
|
||||||
|
|
||||||
|
# Kerberos stuff
|
||||||
|
package { 'libkrb5-dev':
|
||||||
|
ensure => installed,
|
||||||
|
}
|
||||||
|
|
||||||
|
package { 'timfel-krb5-auth':
|
||||||
|
ensure => installed,
|
||||||
|
provider => 'gem',
|
||||||
|
require => [Package['build-essential'],Package['libkrb5-dev']]
|
||||||
|
}
|
||||||
|
|
||||||
|
file { 'krb5.conf':
|
||||||
|
ensure => present,
|
||||||
|
name => '/etc/krb5.conf',
|
||||||
|
source => '/vagrant/puppet/files/krb5.conf',
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => 0644,
|
||||||
|
}
|
||||||
|
|
||||||
|
# git
|
||||||
|
package { 'git':
|
||||||
|
ensure => installed,
|
||||||
|
}
|
Loading…
Reference in a new issue