Last active
August 29, 2015 14:00
-
-
Save supercow/11089126 to your computer and use it in GitHub Desktop.
This file contains 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
if ! $::package_installed { | |
file { 'download_rpm': | |
ensure => file, | |
path => '/tmp/my_package.rpm', | |
source => 'puppet:///files/my_package.rpm', | |
} | |
exec { 'install_package': | |
command => '/bin/rpm -i /tmp/my_package.rpm', | |
require => File['download_rpm'], | |
} | |
} |
This file contains 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
# Why can't everyone do it the easy way? | |
package { 'my_package': | |
ensure => present, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment