Skip to content

Instantly share code, notes, and snippets.

@HanSooloo
Created March 25, 2017 19:13
Show Gist options
  • Save HanSooloo/1676de9472889c1b849fbe0e4305dea8 to your computer and use it in GitHub Desktop.
Save HanSooloo/1676de9472889c1b849fbe0e4305dea8 to your computer and use it in GitHub Desktop.
# Configure vault server
class profiles::vault::server {
class { '::vault':
download_url => 'https://releases.hashicorp.com/vault/0.6.5/vault_0.6.5_linux_amd64.zip',
service_provider => 'systemd',
backend => { 'inmem' => {}, },
} ->
file { '/tmp/bootstrap':
ensure => "directory",
} ->
file { '/tmp/bootstrap/init_vault.sh':
ensure => present,
owner => 'root',
group => 'root',
mode => '0700',
content => file('profiles/vault/init_vault.sh'),
}
$root_key = generate('/tmp/bootstrap/init_vault.sh')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment