GithubHelp home page GithubHelp logo

puppet-xlrelease's Introduction

#xlrelease

Build Status

####Table of Contents

  1. Overview
  2. Module Description
  3. Setup
  4. Usage
  5. Reference
  6. Limitations
  7. Development

##Overview

A module that takes care of the installation and configuration regarding XL Release by Xebialabs

##Module Description This Module is geared toward the installation and configuration of Xebialabs XL-Release. It will take care of the installation of xl-release on linux based systems as well as doing a lot of the standard configuration required to setup a production ready instance of xl-release.

##Setup

###Setup Requirements

This module requires the following:

  • pluginsync enabled
  • module puppetlabs-stdlib installed
  • module puppetlabs-concat installed

###Beginning with [puppet-xlrelease]

##Usage

###basic installation

class{xlrelease:
    install_java => true,
    install_type: 'download'
    xlr_download_user: '<your download user>'
    xlr_download_password: '<your download password'
    xlr_licsource: 'https://dist.xebialabs.com/customer/licenses/download/xl-release-license.lic'
 }

this will install a basic instance of xl-release at /opt/xl-release/xl-release-server which will respond on port 5516.

###ldap configuration class { 'xlrelease': install_java => true, install_type => 'download', xlr_download_user => '', xlr_download_password => '', xlr_custom_license_source => 'https://dist.xebialabs.com/customer/licenses/download/v3/xl-release-license.lic', ldap_server_url => 'ldap://localhost:1389/', ldap_manager_dn => 'cn=admin,dc=example,dc=com', ldap_manager_password => 'secret', ldap_user_search_base => 'dc=example,dc=com', ldap_user_search_filter => '(&(uid={0})(objectClass=inetOrgPerson))', ldap_group_search_base => 'ou=groups,dc=example,dc=com', ldap_group_search_filter => '(memberUid={0})', }

###adding configuration adding a xl-deploy server to the configuration

xlrelease_xld_server{'default':
     properties => { 'url' => 'http://your.xld.instance:4516/<context_root>',
                     'username' => 'your xld user',
                     'password' => 'your xld password' 
                    }
}          

adding a jenkins server to the configuration

xlrelease_config_item{'jenkins_default':
    type => 'jenkins.Server',
    properties => { username: "jenkins user name"
                    title: "title in xlr"
                    proxyHost: <optional proxy host .. null for no proxy>
                    proxyPort: <optional proxy port .. null for no port>
                    password: "jenkins user password"
                    url: 'http://your_jenkins_host_goes_here:and_the_port_here'
    }
}

adding a git repo to the configuration

xlrelease_config_item{'your_git_repo':
    type => 'git.Repository',
    properties => { username: "git user name"
                    title: "title in xlr"
                    password: "git user password"
                    url: 'http://url.to.git/repo'
    }
}

adding a xl-deploy server to the configuration from a different system using puppet this code could be used in a manifest when installing a xl-deploy server using puppet

xlrelease_xld_server{'default':
         properties => { 'url' => "http://${fqdn}:4516/<context_root>",
                         'username' => 'your xld user',
                         'password' => 'your xld password' 
                        }
         rest_url => 'http://user:[email protected]:5516/<something>'
    } 

adding a jenkins server to the configuration from a different system using puppet this code could be used in a manifest when installing a jenkins server using puppet

xlrelease_config_item{'jenkins_default':
    type => 'jenkins.Server',
    rest_url => 'http://user:[email protected]:5516/<something>',
    properties => { username: "jenkins user name"
                    title: "title in xlr"
                    proxyHost: <optional proxy host .. null for no proxy>
                    proxyPort: <optional proxy port .. null for no port>
                    password: "jenkins user password"
                    url: 'http://your_jenkins_host_goes_here:and_the_port_here'
                    }
}

adding a git repo to the configuration form a different system using puppet

xlrelease_config_item{'your_git_repo':
    type => 'git.Repository',
    rest_url => 'http://user:[email protected]:5516/<something>',
    properties => { username: "git user name"
                    title: "title in xlr"
                    password: "git user password"
                    url: 'http://url.to.git/repo'
                   }
}

###using hiera

basic installation

---
  xlrelease::install_java: true 
  xlrelease::install_type: 'download'
  xlrelease::xlr_download_user: 'get one'
  xlrelease::xlr_download_password: 'not telling you that'
  xlrelease::xlr_licsource: 'https://dist.xebialabs.com/customer/licenses/download/xl-release-license.lic'

adding a xl-deploy server to the configuration the module commes equiped with a hash parameters for use with hiera

---
  xlrelease::xlr_xldeploy_hash:
      'default':
        properties:
         url: "http://your.xld.instance:4516/<context_root>"
         username: "your xld user"
         password: "your xld password"

adding a jenkins server and a git repo to the configuration

---
  xlrelease::xlr_config_item_hash:
      'jenkins1':
        type: 'jenkins.Server'
        title: 'jenkins1'
        properties:
          username: "jenkins user"
          title: "title in xlr"
          proxyHost:  <optional proxy host .. null for no proxy>
          proxyPort:  <optional proxy host .. null for no proxy>
          password: "jenkins user password"
          url: 'http://your_jenkins_host_goes_here:and_the_port_here'
      'git_test1':
         type: 'git.Repository'
         title: 'git_test1'
         properties:
           username: 'git user name'
           password: 'title in xlr'
           url: 'http://url.to.git/repo'
           title: 'title in xlr'

##Reference

####Public classes

xlrelease #####os_user
the user that will be used to run xlr and installed on the os by the module (unless it's already there) default: xlrelease #####os_group
the group that will be used to run xlr and installed on the os by the module (unless it's already there) default: xlrelease #####tmp_dir
specifies a temporary file storage space for the module to store downloaded stuff default: /var/tmp #####xlr_version
specifies the version of xlr to install default : 4.5.1 #####xlr_basedir
specifies the base installation directory for xlr default: /opt/xl-release #####xlr_serverhome
specifies the xlrelease server home directory default: /opt/xl-release/xl-release-server #####xlr_licsource specifies where the xl-release license can be obtained default: no help there .. sorry #####xlr_repopath specifies the path to the xlr repository on the filesystem either specify a full path prefixed with file:/// or a directory relative to the server home default: repository #####xlr_initrepo
specifies if we should initialize the repo upon installation default: true #####xlr_http_port
specifies the port xlr will respond to default: 5516 #####xlr_http_bind_address specifies the address the instance binds to default: 0.0.0.0 (listens to all incomming traffic) #####xlr_http_context_root
specifies the context root xlr will respond on default: / #####xlr_importable_packages_path specifies the path to the imporatble packages either specify a full path prefixed with file:/// or a directory relative to the server home default: importablePackages #####xlr_ssl
specifies if the module should setup ssl traffic to the server default: false #####xlr_download_user specifies the xlr download user account (can be obtaind from xebialabs) default: undef #####xlr_download_password specifies the xlr download user password (can be obtained form http://www.xebialabs.com) default: undef #####xlr_download_proxy_url specifies a proxy url if one is needed to obtain a direct internet connection default: undef #####xlr_rest_user specifies the restuser to be used for interfacing from the module to the xlr instance default: admin #####xlr_rest_password
specifies the restusers password default: xebialabs #####xlr_admin_password
specifies the admin password xlr will be setup with default: xebialabs #####java_home
specifies the java_home which will be used to run xlr default: 'RedHat' : '/usr/lib/jvm/jre-1.7.0-openjdk.x86_64' 'Debian' : '/usr/lib/jvm/java-7-openjdk-amd64' #####install_java specifies if java should be installed as part of this modules duties #####install_type
specifies the type of installation method where gonna use: default: download choices: download: download source from xebialabs.com (preffered) puppetfiles: get the source from a specified puppet files location #####puppetfiles_xlrelease_source specifies the source location of the xlr installation for use with a puppetfiles installation type #####custom_download_server_url
specify a custom download url (other than the standard xebialabs one provided by the module) #####xlr_xldeploy_hash
allows for the specification of multiple xl-deploy instances in a hash format (see instructions above) #####xlr_config_item_hash
allows for the specifiaction of multiple xl-release configuration items in a hash format (see instructions above) #####ldap_server_url ldap url to connect to #####ldap_manager_dn principal to perform the initial bind to the LDAP server #####ldap_manager_password credentials to perform the initial bind to the LDAP server #####ldap_user_search_base ldap filter to use as a basis for searching for users #####ldap_user_search_filter ldap filter to determine the LDAP dn for the user who is logging in #####ldap_group_search_base ldap filter to use as a basis for searching for groups #####ldap_group_search_filter ldap filter to determine the group memberships of the user

####types and provider pairs xlrelease_xld_server

this resource can be used to configure a xl-deploy instance in a xlr instance

#####type the type of ci to configure in xlr (no point in changing this on this resource !!!!) default : 'xlrelease.DeployitServerDefinition'
#####properties the properties the should be configured in xld 'url': the url to reach the xldeploy server on 'username': the username of the xldeploy server 'password': the password to go along with the username #####rest_url a url to reach the external xlr server on (which is optional) use this if u are using this resource from a different server other than the xlr server default: undef

xlrelease_config_item

this resource can be used to influence a configuration item in an xlr instance

#####type the type of ci to configure in xlr posiblities: jenkins.Server, git.Repository (amongst others ... this has to be valid in xlr) #####properties the properties the should be configured in xld (dependent on the type) #####rest_url a url to reach the external xlr server on (which is optional) use this if u are using this resource from a different server other than the xlr server default: undef

##Limitations

###os compatibility

  • Debian (all recent versions)
  • Ubuntu (all recent versions) 12.02 and 14.02 supported
  • Redhat (6&7 supported)
  • CentOS (6&7 supported)

###xlrelease compatibility versions 4.0.13 and 4.5.1 tested ##Development

  • No real rules yet, but a test set will be setup pretty soon.
  • Pull requests will be evaluated and if they make sense they will be incorporated in the module

##Release Notes/Contributors/Etc Optional

###Maintainers

  • Wian Vos

###Contributors

  • Wian Vos

** help wanted **

puppet-xlrelease's People

Contributors

jdewinne avatar ltutar avatar mpvvliet avatar superseb avatar wianvos avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppet-xlrelease's Issues

bug: Xlrelease_xld_server tries to authenticate with a wrong parameter

From @ltutar on May 22, 2015 13:9

I have the following yaml.
xlrelease::xlr_version: '4.6.0'
xlrelease::xlr_licsource: 'puppet:///modules/xlrelease/license/xl-release-license.lic'
xlrelease::install_type: 'puppetfiles'
xlrelease::puppetfiles_xlrelease_source: 'puppet:///modules/xlrelease/sources'
xlrelease::xlr_admin_password: 'xebia1'
xlrelease::xlr_rest_user: 'levent'
xlrelease::xlr_rest_password: 'tuttifrutti'

xlrelease::xlr_xldeploy_hash:
'default':
properties:
url: "http://192.168.234.11:4516/deployit/"
username: "admin"
password: "xebia1"

When I run 'puppet agent -t', I get the following error. It looks like the parameter xlrelease::xlr_rest_user: 'levent' is being used to authenticate with XL Deploy.

rror: /Stage[main]/Xlrelease::Postconfig/Xlrelease_xld_server[default]: Could not evaluate: 746: unexpected token at 'cannot send request to deployit server 401/Cannot authenticate levent:

<title>Error 401 Cannot authenticate levent</title>

HTTP ERROR 401

Problem accessing /repository/tree/Configuration/Deployit/default. Reason:

    Cannot authenticate levent


Powered by Jetty://
' Notice: /Stage[main]/Xlrelease/Anchor[xlrelease::end]: Dependency Xlrelease_xld_server[default] has failures: true Warning: /Stage[main]/Xlrelease/Anchor[xlrelease::end]: Skipping because of failed dependencies Notice: Finished catalog run in 48.94 seconds [root@puppetagent7 ~]#

Copied from original issue: WianVos/puppet-xlrelease#7

bug: xlrelease::xlr_config_item_hash will create with each run a new jenkins entry in xl release

From @ltutar on June 1, 2015 21:23

I have the following yaml:
xlrelease::xlr_config_item_hash:
'jenkins':
type: 'jenkins.Server'
title: 'jenkins1'
properties:
title: "jenkins"
username: "jenkins_user"
password: "jenkins_user_password"
url: 'http://192.168.234.44:8080/'

Each puppet run will create a new jenkins entry in xlrelease.

Notice: unable to reach localhost:5516
Notice: /Stage[main]/Xlrelease::Postconfig/Xlrelease_config_item[jenkins]/ensure: created
Notice: Finished catalog run in 52.59 seconds
[root@puppetagent7 ~]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for puppetagent7.home
Info: Applying configuration version '1433193476'
Notice: /Stage[main]/Xlrelease::Postconfig/Xlrelease_config_item[jenkins]/ensure: created
Notice: Finished catalog run in 3.23 seconds
[root@puppetagent7 ~]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for puppetagent7.home
Info: Applying configuration version '1433193492'
Notice: /Stage[main]/Xlrelease::Postconfig/Xlrelease_config_item[jenkins]/ensure: created
Notice: Finished catalog run in 4.32 seconds
[root@puppetagent7 ~]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for puppetagent7.home
Info: Applying configuration version '1433193651'
Notice: /Stage[main]/Xlrelease::Postconfig/Xlrelease_config_item[jenkins]/ensure: created
Notice: Finished catalog run in 3.33 seconds
[root@puppetagent7 ~]#
grabberraster 0853

Copied from original issue: WianVos/puppet-xlrelease#8

Duplicate declaration: Package[java-1.7.0-openjdk]

When I want to install XL Deploy and XL Release on the same machine, I get the following error.
Maybe you can use ensure_packages.

[root@xldeployagent ~]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Package[java-1.7.0-openjdk] is already declared in file /etc/puppetlabs/code/environments/production/modules/xldeploy/manifests/shared_prereq.pp:22; cannot redeclare at /etc/puppetlabs/code/environments/production/modules/xlrelease/manifests/install.pp:51 at /etc/puppetlabs/code/environments/production/modules/xlrelease/manifests/install.pp:51:11 on node xldeployagent.home
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
[root@xldeployagent ~]#

PE 2015.2: The expression <init xl-release> is not a valid type specification

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a '->' expression, The expression is not a valid type specification. at /etc/puppetlabs/code/environments/production/modules/xlrelease/manifests/config.pp:40:3 on node puppetagent1.home
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

The code was:
-> Exec ['init xl-release']
and works when the space between Exec and [ is removed.
Now:
-> Exec['init xl-release']

New release or move project

Would it be an option to either have a new release or maintain this project better or transfer the project to voxpupuli?

xlr 5.0.0 installation error

when installing XLR version 5.0.0, I get the following error:

otice: /Stage[main]/Xlrelease::Config/File[/opt/xl-release/xl-release-server/plugins/xlr-xlrelease-plugin-1.7.1.jar]/ensure: defined content as '{md5}2c309e9bf716f5d77fa61c71d15c8555'
Info: Class[Xlrelease::Config]: Scheduling refresh of Class[Xlrelease::Service]
Info: Class[Xlrelease::Service]: Scheduling refresh of Service[xl-release]
Error: Could not start Service[xl-release]: Execution of '/sbin/service xl-release start' returned 1: Starting xlrelease: see xlrelease log for more info[FAILED]
Error: /Stage[main]/Xlrelease::Service/Service[xl-release]/ensure: change from stopped to running failed: Could not start Service[xl-release]: Execution of '/sbin/service xl-release start' returned 1: Starting xlrelease: see xlrelease log for more info[FAILED]
Notice: /Stage[main]/Xlrelease::Service/Service[xl-release]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Xlrelease::Service/Xlrelease_check_connection[default]: Dependency Service[xl-release] has failures: true
Warning: /Stage[main]/Xlrelease::Service/Xlrelease_check_connection[default]: Skipping because of failed dependencies
Info: Class[Xlrelease::Service]: Unscheduling all events on Class[Xlrelease::Service]

XLR 5.0.0 introduces yajsw just like XLD. I will investigate it further. But already issuing the error.

PE2015.2: Use of reserved word: type, must be quoted if intended to be a String value

I get the error:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Use of reserved word: type, must be quoted if intended to be a String value at /etc/puppetlabs/code/environments/production/modules/xlrelease/manifests/postconfig.pp:16:5 on node puppetagent1.home

Solution:

remove the line
type => 'xlrelease.DeployitServerDefinition',
from the file xlrelease/manifests/postconfig.pp

Error: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/xlrelease_facts.rb: undefined method `chomp' for nil:NilClass

I had the option xlr_ssl set to true. The puppet run failed. Then I set to false which is the default value.
The puppet run gives the following error:

[root@puppetagent1 ~]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/xlrelease_facts.rb: undefined method `chomp' for nil:NilClass
Info: Caching catalog for puppetagent1.home
Info: Applying configuration version '1444973049'
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: 2015-10-16 07:24:13.955 [main] {} INFO c.x.xlrelease.XLReleaseBootstrapper - XL Release version 4.7.2 (built at 15-10-06 10:32:34)
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: 2015-10-16 07:24:13.959 [main] {} INFO c.x.xlrelease.XLReleaseBootstrapper - (c) 2012-2015 XebiaLabs
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns:
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: 2015-10-16 07:24:14.098 [main] {} INFO c.x.xlrelease.XLReleaseBootstrapper - Reading configuration file from: /opt/xl-release/xl-release-4.7.2-server/conf/xl-release-server.conf
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: 2015-10-16 07:24:14.116 [main] {} INFO c.x.deployit.ServerConfiguration - Read plaintext admin password from the file, marking as dirty to save encrypted.
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: 2015-10-16 07:24:14.119 [main] {} ERROR c.x.xlrelease.XLReleaseBootstrapper - Could not start XL Release
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: java.lang.NullPointerException: null
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: at java.util.Hashtable.put(Hashtable.java:514) ~[na:1.7.0_85]
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: at java.util.Properties.setProperty(Properties.java:161) ~[na:1.7.0_85]
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: at com.xebialabs.deployit.ServerConfiguration.save(ServerConfiguration.java:289) ~[appserver-core-2015.5.2.jar:na]
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: at com.xebialabs.deployit.ServerConfigFile.writeConfiguration(ServerConfigFile.java:80) ~[appserver-core-2015.5.2.jar:na]
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: at com.xebialabs.deployit.setup.Setup.reinitialize(Setup.java:138) ~[appserver-main-2015.5.2.jar:na]
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: at com.xebialabs.deployit.setup.Setup.run(Setup.java:110) ~[appserver-main-2015.5.2.jar:na]
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: at com.xebialabs.xlrelease.XLReleaseBootstrapper.startSetup(XLReleaseBootstrapper.java:97) ~[server-4.7.2.jar:na]
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: at com.xebialabs.xlrelease.XLReleaseBootstrapper.start(XLReleaseBootstrapper.java:64) ~[server-4.7.2.jar:na]
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: at com.xebialabs.xlrelease.XLReleaseBootstrapper.main(XLReleaseBootstrapper.java:49) ~[server-4.7.2.jar:na]
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: null
Error: /opt/xl-release/xl-release-server/bin/server.sh -setup -reinitialize -force -setup-defaults /opt/xl-release/xl-release-server/conf/xl-release-server.conf returned 1 instead of one of [0]
Error: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: change from notrun to 0 failed: /opt/xl-release/xl-release-server/bin/server.sh -setup -reinitialize -force -setup-defaults /opt/xl-release/xl-release-server/conf/xl-release-server.conf returned 1 instead of one of [0]
Notice: /Stage[main]/Xlrelease::Config/Anchor[xlr config_end]: Dependency Exec[init xl-release] has failures: true
Warning: /Stage[main]/Xlrelease::Config/Anchor[xlr config_end]: Skipping because of failed dependencies
Notice: /Stage[main]/Xlrelease::Service/Service[xl-release]: Dependency Exec[init xl-release] has failures: true
Warning: /Stage[main]/Xlrelease::Service/Service[xl-release]: Skipping because of failed dependencies
Notice: /Stage[main]/Xlrelease::Service/Xlrelease_check_connection[default]: Dependency Exec[init xl-release] has failures: true
Warning: /Stage[main]/Xlrelease::Service/Xlrelease_check_connection[default]: Skipping because of failed dependencies
Notice: /Stage[main]/Xlrelease/Anchor[xlrelease::end]: Dependency Exec[init xl-release] has failures: true
Warning: /Stage[main]/Xlrelease/Anchor[xlrelease::end]: Skipping because of failed dependencies
Notice: Applied catalog in 2.62 seconds
[root@puppetagent1 ~]#

It will not recover. Maybe the xlrelease_facts.rb can be made more robust.

SSL not working

For the administration.
When I set the parameter
xlrelease::xlr_ssl: true
in yaml

Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: at com.xebialabs.xlrelease.XLReleaseBootstrapper.main(XLReleaseBootstrapper.java:49) ~[server-4.7.2.jar:na]
Notice: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: null
Error: /opt/xl-release/xl-release-server/bin/server.sh -setup -reinitialize -force -setup-defaults /opt/xl-release/xl-release-server/conf/xl-release-server.conf returned 1 instead of one of [0]
Error: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: change from notrun to 0 failed: /opt/xl-release/xl-release-server/bin/server.sh -setup -reinitialize -force -setup-defaults /opt/xl-release/xl-release-server/conf/xl-release-server.conf returned 1 instead of one of [0]
Notice: /Stage[main]/Xlrelease::Config/Anchor[xlr config_end]: Dependency Exec[init xl-release] has failures: true
Warning: /Stage[main]/Xlrelease::Config/Anchor[xlr config_end]: Skipping because of failed dependencies
Info: Class[Xlrelease::Config]: Unscheduling all events on Class[Xlrelease::Config]
Notice: /Stage[main]/Xlrelease::Service/Service[xl-release]: Dependency Exec[init xl-release] has failures: true

make the module ready for XLR 4.8.x

The XLR is running after installing with puppet. But the following is shown in the puppet logging:

nfo: Applying configuration version '1450702428'
Error: Could not start Service[xl-release]: Execution of '/sbin/service xl-release start' returned 1: Starting jetty: see jetty log for more info[FAILED]
Error: /Stage[main]/Xlrelease::Service/Service[xl-release]/ensure: change from stopped to running failed: Could not start Service[xl-release]: Execution of '/sbin/service xl-release start' returned 1: Starting jetty: see jetty log for more info[FAILED]
Notice: /Stage[main]/Xlrelease::Service/Xlrelease_check_connection[default]: Dependency Service[xl-release] has failures: true
Warning: /Stage[main]/Xlrelease::Service/Xlrelease_check_connection[default]: Skipping because of failed dependencies
Notice: /Stage[main]/Xlrelease::Postconfig/Xlrelease_xld_server[xldeploy]: Dependency Service[xl-release] has failures: true
Warning: /Stage[main]/Xlrelease::Postconfig/Xlrelease_xld_server[xldeploy]: Skipping because of failed dependencies
Notice: /Stage[main]/Xlrelease::Postconfig/Xlrelease_config_item[jenkins]: Dependency Service[xl-release] has failures: true
Warning: /Stage[main]/Xlrelease::Postconfig/Xlrelease_config_item[jenkins]: Skipping because of failed dependencies
Notice: /Stage[main]/Xlrelease::Postconfig/Xlrelease_config_item[git]: Dependency Service[xl-release] has failures: true
Warning: /Stage[main]/Xlrelease::Postconfig/Xlrelease_config_item[git]: Skipping because of failed dependencies
Notice: /Stage[main]/Xlrelease/Anchor[xlrelease::end]: Dependency Service[xl-release] has failures: true
Warning: /Stage[main]/Xlrelease/Anchor[xlrelease::end]: Skipping because of failed dependencies

Error: Could not find command '/usr/bin/unzip'

Please also install unzip with the module if it is not installed
Notice: /Stage[main]/Xlrelease::Install/File[/opt/xl-release/xl-release-4.7.2-server]/ensure: created
Error: Could not find command '/usr/bin/unzip'
Error: /Stage[main]/Xlrelease::Install/Exec[xlr unpack server file]/returns: change from notrun to 0 failed: Could not find command '/usr/bin/unzip'

bug: puppet run will reset the password to clear text

From @ltutar on May 7, 2015 19:32

The following puppet runs will change the password to its clear text value.
Info: Applying configuration version '1431027075'
Notice: /Stage[main]/Xlrelease::Config/Ini_setting[xlrelease.admin.password]/value: value changed '{b64}CAIxCbqlmdK93f2p1dtBQw==' to 'xebia1'
Info: Class[Xlrelease::Config]: Scheduling refresh of Class[Xlrelease::Service]

Copied from original issue: WianVos/puppet-xlrelease#4

create_resources(): second argument must be a hash

The master is not working and giving the error

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, create_resources(): second argument must be a hash at /etc/puppetlabs/code/environments/production/modules/xlrelease/manifests/install.pp:141:3 on node puppetmaster.home

Error: /opt/xl-release/xl-release-server/bin/server.sh: line 63: /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java: No such file or directory

I run xlrelease with the default params for jdk.
case $::osfamily {
'RedHat' : {
$java_home = '/usr/lib/jvm/jre-1.7.0-openjdk.x86_64'
}

I get the following error:

Notice: /Stage[main]/Xlrelease::Config/Ini_setting[xlrelease.importable.packages.path]/ensure: created
Error: /opt/xl-release/xl-release-server/bin/server.sh: line 63: /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java: No such file or directory

Error: /Stage[main]/Xlrelease::Config/Exec[init xl-release]/returns: change from notrun to 0 failed: /opt/xl-release/xl-release-server/bin/server.sh: line 63: /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java: No such file or directory

[root@puppetagent1 jvm]# pwd
/usr/lib/jvm
You have mail in /var/spool/mail/root
[root@puppetagent1 jvm]# ls -al
total 8
drwxr-xr-x. 3 root root 4096 Oct 14 15:09 .
dr-xr-xr-x. 38 root root 4096 Oct 14 15:08 ..
drwxr-xr-x. 4 root root 95 Oct 14 15:08 java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64
lrwxrwxrwx. 1 root root 21 Oct 14 15:09 jre -> /etc/alternatives/jre
lrwxrwxrwx. 1 root root 27 Oct 14 15:09 jre-1.7.0 -> /etc/alternatives/jre_1.7.0
lrwxrwxrwx. 1 root root 35 Oct 14 15:09 jre-1.7.0-openjdk -> /etc/alternatives/jre_1.7.0_openjdk
lrwxrwxrwx. 1 root root 52 Oct 14 15:09 jre-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64 -> java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64/jre
lrwxrwxrwx. 1 root root 29 Oct 14 15:09 jre-openjdk -> /etc/alternatives/jre_openjdk
[root@puppetagent1 jvm]#

[root@puppetagent1 jvm]# cat /etc/centos-release
CentOS Linux release 7.1.1503 (Core)
[root@puppetagent1 jvm]#

Each puppet run will restart the xl release service

From @ltutar on May 7, 2015 19:43

Each puppet run will restart the xl release service.

otice: /Stage[main]/Xlrelease::Config/Ini_setting[xlrelease.admin.password]/value: value changed '{b64}CAIxCbqlmdK93f2p1dtBQw==' to 'xebia1'
Info: Class[Xlrelease::Config]: Scheduling refresh of Class[Xlrelease::Service]
Info: Class[Xlrelease::Service]: Scheduling refresh of Service[xl-release]
Notice: /Stage[main]/Xlrelease::Service/Service[xl-release]: Triggered 'refresh' from 1 events
Notice: unable to reach localhost:5516
Notice: unable to reach localhost:5516
Notice: unable to reach localhost:5516

The result of ps -ef | grep - jetty
501 5716 5707 16 21:36 ? 00:00:44 /usr/lib/jv
501 6165 6156 95 21:41 ? 00:00:11 /usr/li

Copied from original issue: WianVos/puppet-xlrelease#5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.