-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17c8413
commit cb9b97a
Showing
4 changed files
with
52 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Class: r10k::webhook | ||
# | ||
# | ||
class r10k::webhook ( | ||
Boolean $ensure = true, | ||
String $user = $r10k::params::webhook_user, | ||
String $password = $r10k::params::webhook_password, | ||
) { | ||
# resources | ||
} |
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 @@ | ||
# Class: r10k::webhook::config | ||
# | ||
# | ||
class r10k::webhook::config ( | ||
R10k::Webhook::Config $config | ||
) { | ||
# resources | ||
} |
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,26 @@ | ||
# Class: r10k::webhook::package | ||
# | ||
# | ||
class r10k::webhook::package ( | ||
String $version = '2.0.1', | ||
) { | ||
case $facts['os']['name'] { | ||
'RedHat', 'CentOS': { | ||
$provider = 'rpm' | ||
$package_url = "https://github.com/voxpupuli/webhook-go/releases/download/v${version}/webhook-go_${version}_linux_amd64.rpm" | ||
} | ||
'Debian', 'Ubuntu': { | ||
$provider = 'dpkg' | ||
$package_url = "https://github.com/voxpupuli/webhook-go/releases/download/v${version}/webhook-go_${version}_linux_amd64.deb" | ||
} | ||
default: { | ||
fail("Operating system ${facts['os']['name']} not supported for packages") | ||
} | ||
} | ||
|
||
package { 'webhook-go': | ||
ensure => 'present', | ||
source => $package_url, | ||
proviser => $provider, | ||
} | ||
} |
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 @@ | ||
# Class: r10k::webhook::service | ||
# | ||
# | ||
class r10k::webhook::service { | ||
service { 'webhook': | ||
ensure => 'running', | ||
} | ||
} |