-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from jordiprats/master
docs + group fact
- Loading branch information
Showing
8 changed files
with
83 additions
and
10 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
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,5 +1,9 @@ | ||
# CHANGELOG | ||
|
||
## 0.1.10 | ||
|
||
* added **eypconf_group** fact | ||
|
||
## 0.1.9 | ||
|
||
* removed bool2httpd function | ||
|
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,25 @@ | ||
if File.exists?('/opt/eypconf/id/group.sh') then | ||
nodetype = Facter::Util::Resolution.exec('bash /opt/eypconf/id/group.sh').to_s | ||
else | ||
nodetype = Facter::Util::Resolution.exec('bash -c \'if [ -f /opt/eypconf/id/group ]; then cat /opt/eypconf/id/type | paste -sd,; fi\'') | ||
end | ||
|
||
unless nodetype.nil? or nodetype.empty? | ||
Facter.add('eypconf_group') do | ||
setcode do | ||
nodetype | ||
end | ||
end | ||
|
||
Facter.add('eypconf_group_uppercase') do | ||
setcode do | ||
nodetype.upcase | ||
end | ||
end | ||
|
||
Facter.add('eypconf_group_lowercase') do | ||
setcode do | ||
nodetype.downcase | ||
end | ||
end | ||
end |
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 |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
# | ||
# === eyplib documentation | ||
# | ||
class eyplib inherits eyplib::params{ | ||
|
||
class eyplib { | ||
# nothing to do here | ||
|
||
} |
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,14 @@ | ||
HOSTS: | ||
debian-8: | ||
default_apply_opts: | ||
order: random | ||
strict_variables: | ||
platform: debian-8-amd64 | ||
hypervisor : docker | ||
image: debian:8 | ||
docker_preserve_image: true | ||
docker_image_commands: | ||
- 'apt-get install libssl-dev gcc make tar wget openjdk-7-jdk -y' | ||
CONFIG: | ||
type: foss | ||
log_level: debug |
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,15 @@ | ||
HOSTS: | ||
ubuntu-1604-x64: | ||
default_apply_opts: | ||
order: random | ||
strict_variables: | ||
platform: ubuntu-16.04-amd64 | ||
hypervisor : docker | ||
image: ubuntu:16.04 | ||
docker_cmd: '["/sbin/init"]' | ||
docker_preserve_image: true | ||
docker_image_commands: | ||
- 'apt-get install net-tools gcc make tar wget -y' | ||
CONFIG: | ||
type: foss | ||
log_level: debug |