forked from criteo-cookbooks/rundeck-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed installation for Rundeck 2.7.x Added CLI installation recipe CLI installation should be fine fo this cookbook. Rundeck CLI may need to cut another release of their project See: rundeck/rundeck-cli#56
- Loading branch information
Showing
5 changed files
with
59 additions
and
2 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
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 @@ | ||
# Cookbook: rundeck-server | ||
# Recipe: install_cli | ||
# Description: This should be ran if using Rundeck 7.x+ | ||
# See: http://rundeck.org/docs/upgrading/index.html#cli-tools-are-gone | ||
# | ||
|
||
# Note: This must be Java 8 or greater | ||
# See: | ||
include_recipe 'java' if node['rundeck_server']['install_java'] | ||
|
||
package 'rundeck-cli' | ||
|
||
directory ::File.join(node['rundeck_server']['basedir'], '.rd') do | ||
owner 'rundeck' | ||
group 'rundeck' | ||
end | ||
|
||
template 'rd.conf' do | ||
path ::File.join(node['rundeck_server']['basedir'], '.rd', 'rd.conf') | ||
variables(properties: node['rundeck_server']['cli']['config']) | ||
action :create | ||
sensitive true | ||
owner 'rundeck' | ||
group 'rundeck' | ||
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
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 @@ | ||
<% @properties.sort.each do |key, value| %> | ||
export <%= key %>=<%= value.to_s if value.is_a? String %> | ||
<% end %> |