GithubHelp home page GithubHelp logo

puppet-xldeploy's People

Contributors

deddiekoel avatar dzinek avatar hjjacobs avatar jdewinne avatar ltutar avatar mpvvliet avatar ndebuhr avatar omebarki avatar superseb avatar wianvos avatar

Stargazers

 avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar

puppet-xldeploy's Issues

consolidate the various netinstallers

I created a couple of netinstall providers mainly on the fly. The do contain duplicate code ..
This should be refactored before the next release (v1.2)

refactor install class

the install class is getting to complex to refactor .. so we need to hack it up ..
Cli is moving to it's own stream so that's gone anyway..
Net install and puppetfile can go take a hike into their own classes .. saves a lot in ordering complexity
license also needs to move to it's own class.

changing the admin password does not work

After the initialization of the repository, if you want to change the admin password, it will not work. The module only changes the deployit.conf. There is much work that needs to be done.

To change the admin password, the following procedure has to be followed. Make sure the XL Deploy Server is running. Then start the CLI as the admin user (or another user with admin rights) and issue the following commands:

adminUser = security.readUser('admin')
adminUser.password = 'newpassword'
security.modifyUser(adminUser)

At this point, the XL Deploy Server must be stopped. Once this has happened, set the new admin password in the deployit.conf file in the conf directory of the server installation directory.

Restart XL Deploy

See http://docs.xebialabs.com/releases/4.5/xl-deploy/systemadminmanual.html#changing-the-admin-password

You can either use the CLI or the REST API.
See http://docs.xebialabs.com/releases/4.5/xl-deploy/rest-api/com.xebialabs.deployit.engine.api.UserService.html for the REST API.

download_proxy_url does not work

using the download proxy url leads to ssl connection errors with all the netinstall providers
fix is replacing

http_proxy with https_proxy in the various providers.

will fix asap

Error xxx is not a property from 'overthere.SshHost'

Hi,

since the last update, I have a strange issue:
Error: '[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost]:privateKeyFile' is not a property from 'overthere.SshHost'

we work with xldeploy-4.5.2, puppet-3.7.3 and ruby 1.8.7

this is the log:
[root@nlbdeployx1 manifests]# puppet apply site.pp
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Scope(Class[Xldeploy::Client::Validation]): hosttypeoverthere.SshHostnameInfrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHostpropertiesprivateKeyFile/root/.ssh/id_rsa_opsaddressnlbdeployx1.emv2.comtagstracker2osUNIXport22passphraseOpsPa$$phras3usernamerootconnectionTypeSFTPproject_foldernameInfrastructure/PREPROD/Equinix/testtypecore.Directory
Warning: You cannot collect without storeconfigs being set on line 36 in file /etc/puppet/modules/xldeploy/manifests/client/config_ci.pp
Notice: Compiled catalog for nlbdeployx1.emv2.com in environment production in 2.63 seconds
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
(at /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.3/lib/puppet/type/package.rb:430:in `default')
Notice: Public key from xldeploy@[email protected] not available yet. Skipping
Notice: /Stage[main]/Xldeploy::Client::User/Sshkeys::Set_authorized_key[[email protected]]/Notify[Public key from xldeploy@[email protected] not available yet. Skipping]/message: defined 'message' as 'Public key from xldeploy@[email protected] not available yet. Skipping'
Notice: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[project_folder]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/test]/ensure: created
Error: '[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost]:privateKeyFile' is not a property from 'overthere.SshHost'
Error: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[host]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost]/ensure: change from absent to present failed: '[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost]:privateKeyFile' is not a property from 'overthere.SshHost'
Notice: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Dependency Xldeploy_ci[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost] has failures: true
Warning: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Skipping because of failed dependencies
Notice: Finished catalog run in 61.57 seconds

But if I try a new one few second after, I have anoter property issue:
[root@nlbdeployx1 manifests]# puppet apply site.pp
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Scope(Class[Xldeploy::Client::Validation]): hostnameInfrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHosttypeoverthere.SshHostpropertiestagstracker2usernamerootosUNIXpassphraseOpsPa$$phras3port22privateKeyFile/root/.ssh/id_rsa_opsaddressnlbdeployx1.emv2.comconnectionTypeSFTPproject_foldernameInfrastructure/PREPROD/Equinix/testtypecore.Directory
Warning: You cannot collect without storeconfigs being set on line 36 in file /etc/puppet/modules/xldeploy/manifests/client/config_ci.pp
Notice: Compiled catalog for nlbdeployx1.emv2.com in environment production in 2.40 seconds
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
(at /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.3/lib/puppet/type/package.rb:430:in `default')
Notice: Public key from xldeploy@[email protected] not available yet. Skipping
Notice: /Stage[main]/Xldeploy::Client::User/Sshkeys::Set_authorized_key[[email protected]]/Notify[Public key from xldeploy@[email protected] not available yet. Skipping]/message: defined 'message' as 'Public key from xldeploy@[email protected] not available yet. Skipping'
Notice: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[project_folder]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/test]/ensure: created
Error: '[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost]:tags' is not a property from 'overthere.SshHost'
Error: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[host]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost]/ensure: change from absent to present failed: '[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost]:tags' is not a property from 'overthere.SshHost'
Notice: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Dependency Xldeploy_ci[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost] has failures: true
Warning: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Skipping because of failed dependencies
Notice: Finished catalog run in 4.53 seconds

and another one if I test again:
[root@nlbdeployx1 manifests]# puppet apply site.pp
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Scope(Class[Xldeploy::Client::Validation]): project_foldernameInfrastructure/PREPROD/Equinix/testtypecore.Directoryhosttypeoverthere.SshHostnameInfrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHostpropertiesusernamerootconnectionTypeSFTPpassphraseOpsPa$$phras3port22privateKeyFile/root/.ssh/id_rsa_opsaddressnlbdeployx1.emv2.comtagstracker2osUNIX
Warning: You cannot collect without storeconfigs being set on line 36 in file /etc/puppet/modules/xldeploy/manifests/client/config_ci.pp
Notice: Compiled catalog for nlbdeployx1.emv2.com in environment production in 2.48 seconds
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
(at /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.3/lib/puppet/type/package.rb:430:in `default')
Notice: Public key from xldeploy@[email protected] not available yet. Skipping
Notice: /Stage[main]/Xldeploy::Client::User/Sshkeys::Set_authorized_key[[email protected]]/Notify[Public key from xldeploy@[email protected] not available yet. Skipping]/message: defined 'message' as 'Public key from xldeploy@[email protected] not available yet. Skipping'
Notice: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[project_folder]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/test]/ensure: created
Error: '[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost]:username' is not a property from 'overthere.SshHost'
Error: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[host]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost]/ensure: change from absent to present failed: '[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost]:username' is not a property from 'overthere.SshHost'
Notice: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Dependency Xldeploy_ci[Infrastructure/PREPROD/Equinix/test/nlbdeployx1_sshHost] has failures: true
Warning: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Skipping because of failed dependencies
Notice: Finished catalog run in 6.44 seconds

I check my site.pp to be sure there is no syntax error.
Let me know any other information you think might be helpful.

syntax error

Hi,

in the Xldeploy::Client::Validation class, there is a syntax error.
you have at the line 23 xldeploy::client::client::importable_packages_path (client:: x 2)

regards

undefined method `attributes' for nil:NilClass

Since the last update, I have a new issue: undefined method `attributes' for nil:NilClass
but as the #40 issue, I still have "change from absent to present failed" error.
I did a test with puppet 3.7.3 and ruby 1.8.7 or 1.9.3.
this is the trace for Ruby 1.9.3

[root@nlbdeployx2 ~]# puppet agent -t --trace
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for nlbdeployx2.emv2.com
Info: Applying configuration version '1418740020'
Notice: Public key from xldeploy@[email protected] not available yet. Skipping
Notice: /Stage[main]/Xldeploy::Client::User/Sshkeys::Set_authorized_key[[email protected]]/Notify[Public key from xldeploy@[email protected] not available yet. Skipping]/message: defined 'message' as 'Public key from xldeploy@[email protected] not available yet. Skipping'
Notice: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[project_folder]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0]/ensure: created
Error: Could not set 'present' on ensure: undefined method attributes' for nil:NilClass at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:86:inblock in to_xml'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:82:in each' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:82:into_xml'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:56:in desired_xml' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:65:inpersist'
/var/lib/puppet/lib/puppet/provider/xldeploy_ci/rest.rb:10:in create' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property/ensure.rb:16:inblock in defaultvalues'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property.rb:197:in call_valuemethod' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property.rb:498:inset'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property.rb:581:in sync' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:204:insync'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:128:in sync_if_needed' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:81:inperform_changes'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:20:in evaluate' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:204:inapply'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:217:in eval_resource' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:147:incall'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:147:in block (2 levels) in evaluate' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:327:inblock in thinmark'
/usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/benchmark.rb:295:in realtime' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:326:inthinmark'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:147:in block in evaluate' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/graph/relationship_graph.rb:118:intraverse'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:138:in evaluate' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/resource/catalog.rb:169:inblock in apply'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/log.rb:149:in with_destination' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/report.rb:112:inas_logging_destination'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/resource/catalog.rb:168:in apply' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:118:inblock in apply_catalog'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:161:in block in benchmark' /usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/benchmark.rb:295:inrealtime'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:160:in benchmark' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:117:inapply_catalog'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:224:in run_internal' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:132:inblock in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/context.rb:64:in override' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet.rb:244:inoverride'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:131:in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:47:inblock (4 levels) in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent/locker.rb:20:in lock' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:47:inblock (3 levels) in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:117:in with_client' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:44:inblock (2 levels) in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:82:in run_in_fork' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:43:inblock in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:179:in call' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:179:incontrolled_run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:41:in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application/agent.rb:356:inonetime'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application/agent.rb:322:in run_command' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:inblock (2 levels) in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:507:in plugin_hook' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:inblock in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:488:in exit_on_fail' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:inrun'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/command_line.rb:146:in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/command_line.rb:92:inexecute'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/bin/puppet:8:in <top (required)>' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/puppet:23:inload'
/usr/local/rvm/gems/ruby-1.9.3-p551/bin/puppet:23:in <main>' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:ineval'
/usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in <main>' Error: Could not set 'present' on ensure: undefined methodattributes' for nil:NilClass at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:86:in block in to_xml' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:82:ineach'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:82:in to_xml' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:56:indesired_xml'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:65:in persist' /var/lib/puppet/lib/puppet/provider/xldeploy_ci/rest.rb:10:increate'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property/ensure.rb:16:in block in defaultvalues' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property.rb:197:incall_valuemethod'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property.rb:498:in set' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property.rb:581:insync'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:204:in sync' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:128:insync_if_needed'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:81:in perform_changes' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:20:inevaluate'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:204:in apply' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:217:ineval_resource'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:147:in call' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:147:inblock (2 levels) in evaluate'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:327:in block in thinmark' /usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/benchmark.rb:295:inrealtime'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:326:in thinmark' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:147:inblock in evaluate'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/graph/relationship_graph.rb:118:in traverse' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:138:inevaluate'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/resource/catalog.rb:169:in block in apply' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/log.rb:149:inwith_destination'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/report.rb:112:in as_logging_destination' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/resource/catalog.rb:168:inapply'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:118:in block in apply_catalog' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:161:inblock in benchmark'
/usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/benchmark.rb:295:in realtime' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:160:inbenchmark'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:117:in apply_catalog' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:224:inrun_internal'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:132:in block in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/context.rb:64:inoverride'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet.rb:244:in override' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:131:inrun'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:47:in block (4 levels) in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent/locker.rb:20:inlock'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:47:in block (3 levels) in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:117:inwith_client'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:44:in block (2 levels) in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:82:inrun_in_fork'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:43:in block in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:179:incall'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:179:in controlled_run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:41:inrun'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application/agent.rb:356:in onetime' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application/agent.rb:322:inrun_command'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:in block (2 levels) in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:507:inplugin_hook'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:in block in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:488:inexit_on_fail'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/command_line.rb:146:inrun'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/command_line.rb:92:in execute' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/bin/puppet:8:in<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p551/bin/puppet:23:in load' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/puppet:23:in

'
/usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in eval' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in'
Wrapped exception:
undefined method attributes' for nil:NilClass /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:86:inblock in to_xml'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:82:in each' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:82:into_xml'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:56:in desired_xml' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:65:inpersist'
/var/lib/puppet/lib/puppet/provider/xldeploy_ci/rest.rb:10:in create' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property/ensure.rb:16:inblock in defaultvalues'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property.rb:197:in call_valuemethod' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property.rb:498:inset'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property.rb:581:in sync' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:204:insync'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:128:in sync_if_needed' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:81:inperform_changes'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:20:in evaluate' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:204:inapply'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:217:in eval_resource' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:147:incall'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:147:in block (2 levels) in evaluate' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:327:inblock in thinmark'
/usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/benchmark.rb:295:in realtime' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:326:inthinmark'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:147:in block in evaluate' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/graph/relationship_graph.rb:118:intraverse'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:138:in evaluate' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/resource/catalog.rb:169:inblock in apply'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/log.rb:149:in with_destination' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/report.rb:112:inas_logging_destination'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/resource/catalog.rb:168:in apply' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:118:inblock in apply_catalog'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:161:in block in benchmark' /usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/benchmark.rb:295:inrealtime'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:160:in benchmark' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:117:inapply_catalog'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:224:in run_internal' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:132:inblock in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/context.rb:64:in override' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet.rb:244:inoverride'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:131:in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:47:inblock (4 levels) in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent/locker.rb:20:in lock' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:47:inblock (3 levels) in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:117:in with_client' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:44:inblock (2 levels) in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:82:in run_in_fork' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:43:inblock in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:179:in call' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:179:incontrolled_run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/agent.rb:41:in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application/agent.rb:356:inonetime'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application/agent.rb:322:in run_command' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:inblock (2 levels) in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:507:in plugin_hook' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:inblock in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:488:in exit_on_fail' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:inrun'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/command_line.rb:146:in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/command_line.rb:92:inexecute'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/bin/puppet:8:in <top (required)>' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/puppet:23:inload'
/usr/local/rvm/gems/ruby-1.9.3-p551/bin/puppet:23:in <main>' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:ineval'
/usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in <main>' Error: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[host]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0/nlbdeployx2_sshHost]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined methodattributes' for nil:NilClass at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp
Notice: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Dependency Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0/nlbdeployx2_sshHost] has failures: true
Warning: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Skipping because of failed dependencies
Notice: Finished catalog run in 4.69 seconds

xmlsimple gem should be removed

Some of the types/providers and functions still make use of the xmlsimple module .

We would like to change this to minimize outside dependecys

Puppet says that the CI is created but in fact it is not.

I have the following puppet code:
xldeploy_environment_member{ "MyUniqueID":
env => "Environments/MyEnv",
members => ["Infrastructure/projectx/agentcentos_sshHost"
],
dictionaries => ["Environments/mydictionary"
],
}

I see the following logging after the puppet agent -t run

Notice: /Stage[main]/Jboss_wrapper::Xldeploy/Xldeploy_environment_member[MyUniqueID]/ensure: created
Notice: Finished catalog run in 37.84 seconds

and I see the following logging in XL Deploy
2015-03-09 10:36:59.667 [qtp85192293-339] {username=admin} INFO c.x.deployit.DeployitExceptionMapper - Intercepting DeployitException
com.xebialabs.deployit.exception.NotFoundException: Repository entity [Environments/mydictionary] not found
at com.xebialabs.deployit.repository.JcrRepositoryService$2.doInJcr(JcrRepositoryService.java:113) ~[appserver-core-2014.7.5.jar:na]

I expected the puppet run fail since the CI is not created in XL Deploy repository. I am now not able to keep the puppet run and XL Deploy repository in sync since puppet always gives an OK.

Broken default urls?

Seems like as of today, the default urls that contain tech.xebialabs.com/downloads such as
$download_server_url = "https://tech.xebialabs.com/download/xl-deploy/${version}/xl-deploy-${version}-server.zip”

Seem to have stopped working. What I have had to adjust them to:

$download_server_url = "https://dist.xebialabs.com/xl-deploy/${version}/xl-deploy-${version}-server.zip”

Also, had to change a setting in the lib folder for the plugins:

lib/puppet/type/xldeploy_plugin_netinstall.rb: defaultto 'https://dist.xebialabs.com/plugins'

unable to se custom os_user

The os_user is set by default to xldeploy. When I changed it in the manifest to another user, it seemed to not like that. It is okay, I just created the xldeploy user and am using that one.

ssl value change in params.pp has no effect

When I change, the value of $http_context_root = '/xldeployit' to $http_context_root = '/ddeployit'
I get the following:
Notice: /Stage[main]/Xldeploy::Server::Config/Ini_setting[xldeploy.http.context.root]/value: value changed '/xldeployit' to '/ddeployit'

This is not the case when $ssl =true and I change it to $ssl =false.
It stays true in deployit.conf

Error since the 1.1.1 version

In the client.pp, there is:
$os_user = $xldeploy::params::os_user,
$os_group = $xldeploy::params::os_group
But in params.pp, these var are no more define. it's did in shared_prereq.pp

make the xldeploy init configurable ..

when used to upgrade an installation that is coupled to a database reinitialize i will empty out all the content in the database ... oops

I propose to create an parameter .. xldeploy_init_repo that default to true, but in effect enables you to switch this behaviour off in case of a database installation

/bin/chown: invalid user: `xldeploy:xldeploy'

I installed the xldeploy module.
I added only xldeploy::cli as class
I created xldeploy group and added xldeploy::cli to it.
I added an centos image to this group.
After running puppet agent -t, I get the following error.

Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/iptables_version.rb
Info: Caching catalog for agentcentos.localdomain
Info: Applying configuration version '1415194677'
Error: Execution of '/bin/chown -R xldeploy:xldeploy /opt/xl-deploy' returned 1: /bin/chown: invalid user: xldeploy:xldeploy' Error: /Stage[main]/Xldeploy::Cli::Install/Xldeploy_netinstall[https://tech.xebialabs.com/download/xl-deploy/4.5.1/xl-deploy-4.5.1-cli.zip]/ensure: change from absent to present failed: Execution of '/bin/chown -R xldeploy:xldeploy /opt/xl-deploy' returned 1: /bin/chown: invalid user:xldeploy:xldeploy'
Notice: /Stage[main]/Xldeploy::Cli::Install/Anchor[cli::postinstall]: Dependency Xldeploy_netinstall[https://tech.xebialabs.com/download/xl-deploy/4.5.1/xl-deploy-4.5.1-cli.zip] has failures: true
Warning: /Stage[main]/Xldeploy::Cli::Install/Anchor[cli::postinstall]: Skipping because of failed dependencies
Notice: /Stage[main]/Xldeploy::Cli::Install/File[/opt/xl-deploy/xl-deploy-cli]: Dependency Xldeploy_netinstall[https://tech.xebialabs.com/download/xl-deploy/4.5.1/xl-deploy-4.5.1-cli.zip] has failures: true
Warning: /Stage[main]/Xldeploy::Cli::Install/File[/opt/xl-deploy/xl-deploy-cli]: Skipping because of failed dependencies
Notice: /Stage[main]/Xldeploy::Cli::Install/Anchor[cli::installend]: Dependency Xldeploy_netinstall[https://tech.xebialabs.com/download/xl-deploy/4.5.1/xl-deploy-4.5.1-cli.zip] has failures: true
Warning: /Stage[main]/Xldeploy::Cli::Install/Anchor[cli::installend]: Skipping because of failed dependencies
Notice: /Stage[main]/Xldeploy::Cli/Anchor[xldeploy::cli::end]: Dependency Xldeploy_netinstall[https://tech.xebialabs.com/download/xl-deploy/4.5.1/xl-deploy-4.5.1-cli.zip] has failures: true
Warning: /Stage[main]/Xldeploy::Cli/Anchor[xldeploy::cli::end]: Skipping because of failed dependencies
Notice: Finished catalog run in 161.53 seconds

Levent: The user and the group are not created


When I try xldeploy::server, I get the following:

Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/postgres_default_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/staging_http_get.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_puppetdb_server_status.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/iptables_version.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter ensure on Concat[/opt/xl-deploy/xl-deploy-server/conf/deployit-security.xml] at /etc/puppetlabs/puppet/modules/xldeploy/manifests/server/security.pp:36 on node agentcentos.localdomain
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
[root@agentcentos tmp]#

The code is:

variables

$security_config_file = "${server_home_dir}/conf/deployit-security.xml"

resources

concat{$security_config_file:
ensure => present,
owner => $os_user,
group => $os_group,
mode => '0640'
}

Again the user and the group.

error when using example

Hi,

I have just checkout the last version of this module, test it with your example, but it seems there is some issues.

when I use your example for the xldeploy::client:, I have this kind of issue:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter remove_when_expired on Xldeploy::Client::Config_ci[project_folder] on node nlbdeployx1.emv2.com

If I comment this parameter, I have another issue:
Error: Failed to apply catalog: Parameter id failed on Xldeploy_ci[/Infrastructure/projetx]: Invalid id: /Infrastructure/PREPROD/Equinix/E0 at /etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp:45

Regards

cli.sh not working

I couldn’t get the cli.sh script to work for a bit. This was just me going through some growing pains, but with the setting of
$http_context_root = '/deployit’

I had to specify on the command line the following. Probably silly, but definitely took me some time to get to.
cli.sh -username admin -context deployit/deployit

puppet run complains about XXX is not a property from XXX

Hi,

I keep getting issues with failed: '[Environments/Development/InfraDictionaries/infra-dictionary]:members' is not a property from 'udm.Dictionary'

or

Notice: /Stage[main]/Xldeploy_generic::Config/Notify[environment_initial_and_number: D04]/message: defined 'message' as 'environment_initial_and_number: D04'
Error: '[Environments/Development/D04]:entries' is not a property from 'core.Directory'
Error: /Stage[main]/Xldeploy_generic::Config/Xldeploy_ci[Environments/Development/D04]/ensure: change from absent to present failed: '[Environments/Development/D04]:entries' is not a property from 'core.Directory'

The first CI other than core.Directory works OK. The second does not.

For example. Environment CI works but Dictionary not. I can not make more sense out of it.
xldeploy_ci{ "Environments/${environment_name}/${environment_initial_and_number}":
ensure => present,
type => 'core.Directory',
}

xldeploy_ci{ "Environments/${environment_name}/InfraDictionaries":
ensure => present,
type => 'core.Directory',
}

xldeploy_ci{ "Environments/${environment_name}/${environment_initial_and_number}/${environment_initial_and_number}-environment":
ensure => present,
type => 'udm.Environment',
}

xldeploy_ci{ "Environments/${environment_name}/InfraDictionaries/infra-dictionary":
ensure => present,
type => 'udm.Dictionary',
}

deployit-security.xml for version 4.5.1 is not produced correctly

When I use the following params.pp:
#security settings
$xldeploy_authentication_providers = {'rememberMeAuthenticationProvider' => 'com.xebialabs.deployit.security.authentication.RememberMeAuthenticationProvider',
'jcrAuthenticationProvider' => 'com.xebialabs.deployit.security.authentication.JcrAuthenticationProvider'}
$ldap_server_id = ldapServer
$ldap_server_url = "ldap://levent_url:389"
$ldap_server_root = dunno
$ldap_manager_dn = manager_levent
$ldap_manager_password = manager_levent_password
$ldap_user_search_filter = levent_user_search_filter
$ldap_user_search_base = levent_user_search_base
$ldap_group_search_filter = levent_group_search_filter
$ldap_group_search_base = levent_group_search_base
$ldap_role_prefix = undef

I get a non-working deployit-security.xml, as shown below:

    <bean id="rememberMeAuthenticationProvider" class="com.xebialabs.deployit.security.authentication.RememberMeAuthenticationProvider" />
    <bean id="jcrAuthenticationProvider" class="com.xebialabs.deployit.security.authentication.JcrAuthenticationProvider" />

<security:ldap-server
id="ldapServer"
url="ldap://levent_url:389"
root="dunno"
manager-dn="manager_levent"
manager-password="manager_levent_password"
/>

    <security:authentication-manager alias="authenticationManager">

       <security:authentication-provider ref="rememberMeAuthenticationProvider" />

       <security:authentication-provider ref="jcrAuthenticationProvider" />

              <security:ldap-authentication-provider
       server-ref="ldapServer"
                  user-search-filter="levent_user_search_filter"
                             user-search-base="levent_user_search_base"
                             group-search-filter="levent_group_search_filter"
                             group-search-base="levent_group_search_base"
                          />

    </security:authentication-manager>

I attach below my deployit-security.xml.erb that is working:

ignore

<security:authentication-manager alias="authenticationManager">
<security:authentication-provider ref="rememberMeAuthenticationProvider" />
<security:authentication-provider ref="ldapProvider" />
<security:authentication-provider ref="jcrAuthenticationProvider"/>
/security:authentication-manager

  1. I didn't ldap_server_id. No need for that.
  2. Why not use one template file instead of concats. This makes it difficult to maintain.

Could not aulotload ci.rb , syntax error

Hi,

since the last update, I have this issue:

Error: Could not autoload puppet/provider/xldeploy_ci/rest: /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:14: syntax error, unexpected ',', expecting '='
def initialize(rest_url,id,type, properties={}, ssl, verify_ssl)
^
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:128: syntax error, unexpected kEND, expecting $end
Error: Could not autoload puppet/type/xldeploy_ci: Could not autoload puppet/provider/xldeploy_ci/rest: /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:14: syntax error, unexpected ',', expecting '='
def initialize(rest_url,id,type, properties={}, ssl, verify_ssl)
^
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:128: syntax error, unexpected kEND, expecting $end
Error: Could not retrieve catalog from remote server: Could not intern from text/pson: Could not autoload puppet/type/xldeploy_ci: Could not autoload puppet/provider/xldeploy_ci/rest: /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:14: syntax error, unexpected ',', expecting '='
def initialize(rest_url,id,type, properties={}, ssl, verify_ssl)
^
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:128: syntax error, unexpected kEND, expecting $end
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

I can fix it if in the lib/puppet_x/xebialabs/xldeploy/ci.rb, the def is done like this
def initialize(rest_url,id,type, properties={}, ssl=false, verify_ssl=true)

Can you correct this for the next update ?
Regards

each puppet run will reset the password

Info: Caching catalog for base.localdomain
Info: Applying configuration version '1416400371'
Notice: /Stage[main]/Xldeploy::Server::Config/Ini_setting[xldeploy.admin.password]/value: value changed '{b64}YFKOzMTEICsqFJ592l2FbQ==' to 'admin'

README update needed for dependencies

When I run the xldeploy::server, I got the following error:
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/orawls.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_puppetdb_server_status.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/iptables_version.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type sshkeys::create_key at /etc/puppetlabs/puppet/modules/xldeploy/manifests/server/install_sshkey.pp:24 on node agent1.localdomain
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

After installing, puppet module install jtopjian-sshkeys
The problem was solved.

Make sure the dependencies are noted down in github readme, just like in forge.
See https://forge.puppetlabs.com/xebialabs/xldeploy/dependencies

ssh keys seems to not be working

I have not had any luck with the install of ssh keys. During puppet agent run, I get the following:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type sshkeys::create_key at /etc/puppet/environments/production/modules/xldeploy/manifests/server/install_sshkey.pp:24 on node dep-01.wdtablesystems.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

I have got around it commenting out the following in the install_sshkey.pp

flow

#Xldeploy::Resources::Defaultsetting['overthere.SshHost.privateKeyFile']
#-> Sshkeys::Create_key[$os_user]

call a nice little parser function to generate a random passphrase

$keyfile_passphrase = random_passphrase()

#sshkeys::create_key { $os_user:

home => $server_home_dir,

manage_home => false,

passphrase => $keyfile_passphrase,

notify => Xldeploy::Resources::Defaultsetting['overthere.SshHost.passphrase']

#}

Running Puppet Agent after restarting the puppetmaster service requires addition puppet agent runs

When I go to run the puppet agent, it takes 3 times to run the puppet agent to completion.

Here are the 2 exceptions I get when running the agent, until the 3rd successful run:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not autoload puppet/type/xldeploy_check_connection: Could not autoload puppet/provider/xldeploy_check_connection/port_check: no such file to load -- puppet_x/xebialabs/xldeploy/ci.rb on node dep-01.wdtablesystems.com
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:207:in is_http_200?' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:100:infind'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:201:in find' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:256:inretrieve_new_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:in thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:inrealtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:in thinmark' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:255:inretrieve_new_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:60:in retrieve_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:103:inprepare_and_retrieve_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:170:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in lock' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:in with_client' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:in run_in_fork' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:incontrolled_run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:355:inonetime'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:321:in run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:371:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:477:in plugin_hook' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:371:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:479:in exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:371:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:137:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:91:inexecute'
/usr/bin/puppet:8
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not autoload puppet/type/xldeploy_ci: Could not autoload puppet/provider/xldeploy_ci/rest: no such file to load -- puppet_x/xebialabs/xldeploy/ci.rb on node dep-01.wdtablesystems.com
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:207:in is_http_200?' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:100:infind'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:201:in find' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:256:inretrieve_new_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:in thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:inrealtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:in thinmark' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:255:inretrieve_new_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:60:in retrieve_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:103:inprepare_and_retrieve_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:170:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in lock' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:in with_client' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:in run_in_fork' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:incontrolled_run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:355:inonetime'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:321:in run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:371:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:477:in plugin_hook' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:371:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:479:in exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:371:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:137:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:91:inexecute'
/usr/bin/puppet:8
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

filesystem class is not configurable if database as repository is chosen

When I create jackrabbit file with the module, I get the following xml snippet:







If I use Oracle, then the filesystem class should be:

This should be also configurable just like persistence manager class, as shown below:





the params, I used:

Either 'standalone' or 'database'

$repository_type = 'database'

Only used when repository_type == 'database'

$datastore_driver = levent_datastore_driver
$datastore_url = levent_datastore_url
$datastore_user = levent_datastore_user
$datastore_password = levent_datastore_password
$datastore_databasetype = levent_datastore_databasetype
$datastore_schema = levent_datastore_schema
$datastore_persistencemanagerclass = levent_datastore_persistencemanagerclass
$datastore_jdbc_driver_url = levent_datastore_jdbc_driver_url

Make ssh key management optional

When trying to move from the deployit puppet module to the xldeploy puppet module, I run into the following issue :

The XL Deploy plugin assumes it must handle SSH public key management using another puppet module, but at our site we have exitisting management of public keys that we do not want to remove.

Can the handling of SSH keys be made optional using a parameter?

The following error is blocking the usage of the new module right now.

Info: Loading facts
in /var/opt/lib/pe-puppet/lib/facter/pe_puppetdb_server_status.rb
Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError:
Invalid resource type sshkeys::set_authorized_key
at /etc/puppetlabs/puppet/environments/ontwikkel_hv/modules/xldeploy/manifests/client/user.pp:58 on node dftlx10148.anwb.local
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

No version of 'xebialabs-xldeploy' can satisfy all dependencies

Can we do something about the following?

Installing module:
[root@tennetmastercentos modules]# puppet module install xebialabs-xldeploy
Notice: Preparing to install into /etc/puppetlabs/puppet/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Found at least one version of puppetlabs-stdlib compatible with PE (3.3.2);
Notice: Skipping versions which don't express PE compatibility. To install
the most recent version of the module regardless of compatibility
with PE, use the '--ignore-requirements' flag.
Notice: Found at least one version of puppetlabs-inifile compatible with PE (3.3.2);
Notice: Skipping versions which don't express PE compatibility. To install
the most recent version of the module regardless of compatibility
with PE, use the '--ignore-requirements' flag.
Notice: Found at least one version of puppetlabs-concat compatible with PE (3.3.2);
Notice: Skipping versions which don't express PE compatibility. To install
the most recent version of the module regardless of compatibility
with PE, use the '--ignore-requirements' flag.
Error: Could not install module 'xebialabs-xldeploy' (???)
No version of 'xebialabs-xldeploy' can satisfy all dependencies
Use puppet module install --ignore-dependencies to install only this module

stack level too deep

Hi,

since the last update, i have this issue:
Error: Could not set 'present' on ensure: stack level too deep at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp

documentation should be fixed

We need more documentation on the various parameters of the module.
Because read the fracking code is just no gonna cut it

order dictionary list

Hi,
I use this resource to add the dictionary of my new host in the list of my environment:

xldeploy_environment_member { "Manage Dico of $env_path":
env => "$env_path",
members => ["$infra_folder/$hostname","$infra_folder/$hostname/$hostname-tomcat ", "$infra_folder/$hostname/$hostname-tomcat/$hostname-tomcat.vh ","$infra_folder/$hostname/$hostname-apache","$infra_folder/$hostname/$hostname-firewall"],
dictionaries => ["$dico_folder/$hostname"],
rest_url => "$xldeploy_rest_url",
}

But my issue is the dictionary is added at the end of the list (after a common dictionary for example).
Is there an option to order the list, to add new dictionary in first ?

Regards.

when ssl is turned on, the deployit.conf is not produced correctly

When I have the following parameters:
$version = '4.5.1'
$tmp_dir = '/var/tmp'
$server = true
$import_ssh_key = false
$xldeploy_base_dir = '/opt'
$xldeploy_init_repo = true
$ssl = true

I get the following deployit.conf:
admin.password=admin
jcr.repository.path=repository
threads.min=3
ssl=true
client.session.remember.enabled=true
http.bind.address=0.0.0.0
http.context.root=/xldeployit
threads.max=24
client.session.timeout.minutes=0
http.port=4516
hide.internals=false
importable.packages.path=importablePackages

This does not work. Below I present a working deployit.conf.

admin.password={b64}XyNz0tflR2hVL2pPEVdozA==
keystore.password={b64}5JX633sd2ALU5dCJxSjJjQ==
threads.min=3
jcr.repository.path=repository
ssl=true
client.session.remember.enabled=true
keystore.path=conf/keystore.jks
http.bind.address=0.0.0.0
http.context.root=/
threads.max=24
client.session.timeout.minutes=0
http.port=4516
hide.internals=false
importable.packages.path=importablePackages
keystore.keypassword={b64}3I+F5LuNoW4opVNlsI36FA==

  1. It is about the lines with keystore.xxx
  2. Also, make sure that the following is taken care of when I do not import key.
    Would you like to generate a keystore with a self-signed certificate for you?
    N.B.: Self-signed certificates do not work correctly with some versions of the Flash Player and some browsers!
    Options are yes or no.
    [yes]:

xldeploy::server will not install due to Concat issue

I get the following error. I will investigate it later.
Notice: /Stage[main]/Xldeploy::Server::Gems/Xldeploy::Resources::Local_gem[rest-client]/Package[rest-client]/ensure: created
Notice: unable to reach base.localdomain:4516
Notice: unable to reach base.localdomain:4516
Notice: unable to reach base.localdomain:4516
Notice: unable to reach base.localdomain:4516
Notice: unable to reach base.localdomain:4516
Notice: unable to reach base.localdomain:4516
Notice: unable to reach base.localdomain:4516
Notice: unable to reach base.localdomain:4516
Notice: unable to reach base.localdomain:4516
Notice: Finished catalog run in 173.55 seconds

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.