mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-22 22:29:26 +00:00
Vagrant Support
Brings in the basic config for Vagrant, missing elasticsearch but its enough to bring up a Vagrant instance of the main web app.
This commit is contained in:
34
puppet/manifests/classes/apt.pp
Normal file
34
puppet/manifests/classes/apt.pp
Normal file
@@ -0,0 +1,34 @@
|
||||
stage {'repo': before => Stage['pre']}
|
||||
|
||||
class apt {
|
||||
exec {'apt-get-update':
|
||||
path => '/usr/local/bin:/usr/bin:/bin',
|
||||
command => 'apt-get update',
|
||||
}
|
||||
}
|
||||
|
||||
class {'apt': stage => 'repo' }
|
||||
|
||||
define apt::repo ($source, $key) {
|
||||
|
||||
file {"/etc/apt/sources.list.d/${name}.list":
|
||||
source => "${source}",
|
||||
owner => root,
|
||||
group => root,
|
||||
mode => 0644,
|
||||
notify => Exec['apt-get-update'],
|
||||
}
|
||||
|
||||
apt::key{"${name}-key":
|
||||
key => "${key}",
|
||||
}
|
||||
}
|
||||
|
||||
define apt::key($key) {
|
||||
exec {"${name}-exec":
|
||||
command => "/usr/bin/env bash -c 'apt-key adv --recv-key --keyserver keyserver.ubuntu.com ${key}'",
|
||||
}
|
||||
}
|
||||
|
||||
Apt::Repo <| |> -> Exec['apt-get-update']
|
||||
Apt::Key <| |> -> Exec['apt-get-update']
|
||||
Reference in New Issue
Block a user