This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin to separate out module functionality
- Loading branch information
Showing
5 changed files
with
66 additions
and
16 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class artifactory::install inherits artifactory { | ||
$url = "http://dl.bintray.com/jfrog/artifactory/artifactory-${app_version}.zip" | ||
|
||
if $caller_module_name != $module_name { | ||
fail("Use of private class ${name} by ${caller_module_name}") | ||
} | ||
|
||
staging::deploy { "artifactory-${app_version}.zip": | ||
source => $url, | ||
target => $app_dir, | ||
creates => "$app_dir/artifactory-${app_version}" | ||
} | ||
|
||
file { $app_data: | ||
ensure => directory, | ||
mode => '0755', | ||
owner => $username, | ||
group => $username | ||
} | ||
} |
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,11 @@ | ||
# == Class Artifactory::Params | ||
# Contains all the parameters for the Artifactory module | ||
class artifactory::params { | ||
$username = 'artifactory', | ||
$pass_hash = undef, | ||
$manage_java = false, | ||
$java_version = '7', | ||
$app_dir = '/opt/artifactory', | ||
$app_data = '/var/artifactory', | ||
$app_version = '3.3.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class artifactory::server inherits artifactory { | ||
|
||
# service { 'artifactory': | ||
# ensure => 'running', | ||
# enable => "true", | ||
# hasstatus => "false", | ||
# provider => "redhat", | ||
# require => Package['artifactory'] | ||
# } | ||
|
||
} |
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,12 @@ | ||
class artifactory::user inherits artifactory { | ||
|
||
if $caller_module_name != $module_name { | ||
fail("Use of private class ${name} by ${caller_module_name}") | ||
} | ||
|
||
user { $username: | ||
ensure => present, | ||
manage_home => false, | ||
password => $pass_hash | ||
} | ||
} |