Created
July 10, 2017 09:46
-
-
Save zdtsw/2d559aa47660283270d9d5ba0589b619 to your computer and use it in GitHub Desktop.
Puppet module for install rebar along with OTP 20.0 release
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class jenkins_slave::erlang ( $version ) { | |
| file { '/etc/yum.repos.d/erlang.repo': | |
| source => 'puppet:///modules/jenkins_slave/erlang.repo', | |
| owner => 'root', | |
| group => 'root', | |
| mode => '0640', | |
| } | |
| package {'erlang': | |
| ensure => "$version", | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class jenkins_slave::rebar ( $version ) { | |
| include jenkins_slave::erlang | |
| $dest = "/opt/rebar" | |
| file { "${dest}": | |
| ensure => 'directory', | |
| owner => 'root', | |
| group => 'root', | |
| }-> | |
| wget::fetch { 'getRebar': | |
| source => "http://artifactory.mycompany.com/artifactory/ext-release-local/rebar/${version}/rebar", | |
| destination => "$dest/rebar", | |
| } -> | |
| file { "$dest/rebar" : | |
| owner => 'root', | |
| group => 'root', | |
| mode => '0755', | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment