Merge "Add zanata.ini file"
This commit is contained in:
commit
475bff78c2
@ -18,8 +18,15 @@ class zanata::client(
|
||||
$version = '3.4.2',
|
||||
$user = 'jenkins',
|
||||
$group = 'jenkins',
|
||||
$server = '',
|
||||
$server_url = '',
|
||||
$server_user = '',
|
||||
$server_api_key = '',
|
||||
$homedir = '/home/jenkins/',
|
||||
) {
|
||||
|
||||
$serverid = regsubst($server, '\.', '_', 'G')
|
||||
|
||||
file { '/opt/zanata':
|
||||
ensure => directory,
|
||||
owner => $user,
|
||||
@ -69,4 +76,12 @@ class zanata::client(
|
||||
package { 'openjdk-7-jre-headless':
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
file { "${homedir}/.config/zanata.ini": # XXX needs to be in homedir
|
||||
ensure => present,
|
||||
owner => $user,
|
||||
group => $group,
|
||||
mode => '0600',
|
||||
content => template('zanata/zanata.ini.erb'),
|
||||
}
|
||||
}
|
||||
|
4
templates/zanata.ini.erb
Normal file
4
templates/zanata.ini.erb
Normal file
@ -0,0 +1,4 @@
|
||||
[servers]
|
||||
<%= @serverid -%>.url=<%= @server_url %>
|
||||
<%= @serverid -%>.username=<%= @server_user %>
|
||||
<%= @serverid -%>.key=<%= @server_api_key %>
|
Loading…
Reference in New Issue
Block a user