Puppet Class: terraform::terraformcode
- Defined in:
- manifests/terraformcode.pp
Summary
A short summary of the purpose of this classOverview
A description of what this class does
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'manifests/terraformcode.pp', line 7
class terraform::terraformcode (
String $yumrepopath = '/etc/yum.repos.d/hashicorp.repo',
String $ensurefile = 'file',
$repoowner = 'root',
$repogroup = 'root',
String $terraformpackage = 'terraform',
$terraformversion = '0.15.1-1',
) {
# Setting up hashicorp repository #
file { $yumrepopath:
ensure => $ensurefile,
mode => '0644',
owner => $repoowner,
group => $repogroup,
source => "puppet:///modules/terraform/hashicorp.repo",
}
# Installing Terraform package #
package { $terraformpackage:
ensure => $terraformversion,
}
}
|