-
Notifications
You must be signed in to change notification settings - Fork 6
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 #1 from johnlawerance/code_quality
Code quality
- Loading branch information
Showing
8 changed files
with
82 additions
and
54 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,10 +1,40 @@ | ||
rvm: 1.9.3 | ||
--- | ||
sudo: false | ||
language: ruby | ||
cache: bundler | ||
bundler_args: --without system_tests | ||
before_install: rm Gemfile.lock || true | ||
script: | ||
- 'bundle exec rake' | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- rvm: 1.9.3 | ||
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" | ||
- rvm: 2.1.8 | ||
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" | ||
- rvm: 1.9.3 | ||
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" FUTURE_PARSER=yes | ||
- rvm: 2.1.8 | ||
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" FUTURE_PARSER=yes | ||
- rvm: 2.1.8 | ||
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" | ||
- rvm: 2.2.4 | ||
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" | ||
- rvm: 2.2.4 | ||
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" | ||
- rvm: 2.3.0 | ||
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" | ||
notifications: | ||
email: | ||
- john@johnlawerance.com | ||
env: | ||
- PUPPET_VERSION=3.0 | ||
- PUPPET_VERSION=4.0 | ||
- PUPPET_VERSION=4.1 | ||
- PUPPET_VERSION=4.2 | ||
- PUPPET_VERSION=4.3 | ||
email: john@johnlawerance.com | ||
deploy: | ||
provider: puppetforge | ||
user: johnlawerance | ||
password: | ||
secure: "gNMWPdh6zKIaVJzRBA/DMFoj1IEpQjJ6Sb2NPL6Pt5Yh/+Dgj7zD6jNl/whylUYEkx11DSdfle0S8E7hw0VsLqJOTY4J0E88DZI0UQlT4QyjpUrfOltbGEGssBedl0tm+H7tUqVgqY1VHK+RCHrawkk3Qv2lMfIZEX6mcmuZb0cPmtazdVgXm9v6SLiS3IG/mnxKUPzB/ITna44u2cTqcfZ0MEeeNKOTtKioj05yds1obqbv4BgfXM/RXD0mPCiXnr6Pdx6GlN9xF7Q66FxWb1Shrf+n4WUMLgA9cFNfRR94uMo+19kDkNkALC9+Eb+YjgFxKSteE8jItUn2W32C6wA7jUhpUsAenfLih6Bwvdt2nvqyoxer/l7ddqF9ikUkPCT3CO3N+sKtUVHCxc6PWrjY81mDJsn4jtZzLEUtwR1G3+SJUgM7ysNQMPxMRM+IqvCJasbV/lB8ki9WnjVPeguElm0O0BDMYCMP1tuG3Nx0N8113rWZAoJE6yqxJhyO36B8GaCT6o9Lt4PtP1a5+vwz6bAC1lrqag83GoYMASVxFoP1DBmWvDPjuB71ybn7WrYRXg2ekIeY3WA0lXe1TKjOVpcgw1CkEgxdNImMIxeOX+WlWAHF3cINfcOFP0A+pAlhzQLEYraYZypQSRF+vejHWjkkrA95gNTvA1UBigo=" | ||
on: | ||
tags: true | ||
# all_branches is required to use tags | ||
all_branches: true | ||
# Only publish if our main Ruby target builds | ||
rvm: 1.9.3 |
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,9 @@ | ||
##2016-02-27 - Release 0.1.1 | ||
###Summary | ||
- Fixed puppet-lint errors | ||
- Fixed metadata java/stdlib dependency info | ||
- Fixed install_java param not actually being used | ||
|
||
##2016-02-26 - Release 0.1.0 | ||
###Summary | ||
- Initial Release |
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,32 +1,34 @@ | ||
class crucible::install inherits crucible { | ||
class crucible::install { | ||
|
||
# Install Java | ||
class { 'java': | ||
distribution => 'jre', | ||
package => 'java-1.8.0-openjdk', | ||
if $crucible::install_java == true { | ||
class { 'java': | ||
distribution => 'jre', | ||
package => 'java-1.8.0-openjdk', | ||
} | ||
} | ||
|
||
# Setup service user | ||
user { "$service_user": | ||
user { $crucible::service_user: | ||
ensure => present, | ||
home => '/home/crucible', | ||
shell => '/bin/bash', | ||
} | ||
|
||
# exec to download and install the crucible directory if version file doesn't exist | ||
# Download and install the crucible directory if version file doesn't exist | ||
exec { 'install_crucible': | ||
command => "/usr/bin/wget -q -O /tmp/crucible-$version.zip https://www.atlassian.com/software/crucible/downloads/binary/crucible-$version.zip && /usr/bin/unzip /tmp/crucible-$version.zip -d /tmp/ && mv /tmp/fecru-$version $install_dir-$version && chown -R $service_user.$service_user $install_dir-$version", | ||
creates => "/opt/crucible-$version", | ||
require => User[$service_user], | ||
command => "/usr/bin/wget -q -O /tmp/crucible-${crucible::version}.zip https://www.atlassian.com/software/crucible/downloads/binary/crucible-${crucible::version}.zip && /usr/bin/unzip /tmp/crucible-${crucible::version}.zip -d /tmp/ && mv /tmp/fecru-${crucible::version} ${crucible::install_dir}-${crucible::version} && chown -R ${crucible::service_user}.${crucible::service_user} ${crucible::install_dir}-${crucible::version}", | ||
creates => "/opt/crucible-${crucible::version}", | ||
require => User[$crucible::service_user], | ||
} | ||
|
||
# symlink versioned directory with /opt/crucible/ directory name | ||
file { 'crucible_dir': | ||
path => "$install_dir", | ||
ensure => 'link', | ||
owner => "$service_user", | ||
target => "$install_dir-$version", | ||
require => User[$service_user], | ||
path => $crucible::install_dir, | ||
owner => $crucible::service_user, | ||
target => "${crucible::install_dir}-${crucible::version}", | ||
require => User[$crucible::service_user], | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
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