-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* add dependency for stahnma/epel module * separate dependencies for redhat, debian osfamily * add librarian-puppet, update other gems * update Vagrantfile and add centos box
- Loading branch information
Showing
13 changed files
with
111 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
--- | ||
fixtures: | ||
repositories: | ||
epel: https://github.com/stahnma/puppet-module-epel | ||
symlinks: | ||
awscli: "#{source_dir}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
Gemfile.lock | ||
*.swp | ||
.librarian/ | ||
.tmp/ | ||
.vagrant | ||
modules/ | ||
pkg/* | ||
.vagrant* | ||
spec/fixtures/manifests/ | ||
spec/fixtures/modules/ |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
forge 'https://forgeapi.puppetlabs.com' | ||
|
||
mod 'stahnma-epel' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FORGE | ||
remote: https://forgeapi.puppetlabs.com | ||
specs: | ||
stahnma-epel (0.1.0) | ||
|
||
DEPENDENCIES | ||
stahnma-epel (>= 0) | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
# ==Class: awscli::deps | ||
# == Class: awscli::deps | ||
# | ||
# This module manages awscli dependencies and should *not* be called directly. | ||
# | ||
# === Authors | ||
# | ||
# Justin Downing <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright 2014 Justin Downing | ||
# | ||
class awscli::deps { | ||
if ! defined(Package['python-dev']) { | ||
package { 'python-dev': ensure => installed } | ||
} | ||
|
||
if ! defined(Package['python-pip']) { | ||
package { 'python-pip': ensure => installed } | ||
case $::osfamily { | ||
'Debian': { | ||
include awscli::deps::debian | ||
} | ||
'RedHat': { | ||
include awscli::deps::redhat | ||
} | ||
default: { fail('The rbenv module currently only suports Debian and RedHat families') } | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# ==Class: awscli::deps::debian | ||
# | ||
# This module manages awscli dependencies for Debian $::osfamily. | ||
# | ||
class awscli::deps::debian { | ||
if ! defined(Package['python-dev']) { | ||
package { 'python-dev': ensure => installed } | ||
} | ||
|
||
if ! defined(Package['python-pip']) { | ||
package { 'python-pip': ensure => installed } | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ==Class: awscli::deps::redhat | ||
# | ||
# This module manages awscli dependencies for redhat $::osfamily. | ||
# | ||
class awscli::deps::redhat { | ||
include ::epel | ||
Package { require => Class['epel'] } | ||
|
||
if ! defined(Package['python-devel']) { | ||
package { 'python-devel': ensure => installed } | ||
} | ||
|
||
if ! defined(Package['python-pip']) { | ||
package { 'python-pip': ensure => installed } | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
class { 'awscli': } | ||
class { 'awscli': version => 'latest' } |