xebialabs-community / puppet-xldeploy Goto Github PK
View Code? Open in Web Editor NEWPuppet module for managing XL Deploy
Puppet module for managing XL Deploy
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)
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.
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.
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.
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
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.
in housekeeping.pp : make the cron entry for xldeploy-housekeeping configurable with parameters from the init class
xebialabs has turned out a community edition of xldeploy.
Our module should support this .
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
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:in
block 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:in
to_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:in
persist'
/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:in
block 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:in
set'
/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:in
sync'
/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:in
perform_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:in
apply'
/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:in
call'
/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:in
block 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:in
thinmark'
/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:in
traverse'
/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:in
block 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:in
as_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:in
block 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:in
realtime'
/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:in
apply_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:in
block 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:in
override'
/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: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:in lock' /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:in with_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:in run_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:in call' /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:in run' /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:in run_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:in plugin_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:in exit_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:in run' /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 <main>' /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 <main>' 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:in block 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:in to_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:in persist' /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:in block 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:in set' /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:in sync' /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:in perform_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:in apply' /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:in call' /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:in block 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:in thinmark' /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:in traverse' /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:in block 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:in as_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:in block 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:in realtime' /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:in apply_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:in block 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:in override' /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: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:in
lock'
/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:in
with_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:in
run_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:in
call'
/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:in
run'
/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:in
run_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:in
plugin_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:in
exit_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:in
run'
/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
eval' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in
'attributes' for nil:NilClass /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:86:in
block in to_xml'each' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:82:in
to_xml'desired_xml' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:65:in
persist'create' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property/ensure.rb:16:in
block in defaultvalues'call_valuemethod' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/property.rb:498:in
set'sync' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:204:in
sync'sync_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'evaluate' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:204:in
apply'eval_resource' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction.rb:147:in
call'block (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'realtime' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:326:in
thinmark'block 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'evaluate' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/resource/catalog.rb:169:in
block in apply'with_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'apply' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:118:in
block in apply_catalog'block in benchmark' /usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/benchmark.rb:295:in
realtime'benchmark' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:117:in
apply_catalog'run_internal' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/configurer.rb:132:in
block in run'override' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet.rb:244:in
override'run' /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'lock' /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'with_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'run_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'call' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:179:in
controlled_run'run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application/agent.rb:356:in
onetime'run_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'plugin_hook' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:in
block in run'exit_on_fail' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:in
run'run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/command_line.rb:92:in
execute'<top (required)>' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/puppet:23:in
load'<main>' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in
eval'<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 method
attributes' for nil:NilClass at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.ppfactor out xml-simple.
add ssl and verify ssl
Some of the types/providers and functions still make use of the xmlsimple module .
We would like to change this to minimize outside dependecys
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.
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'
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.
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
A xldeploy rest url should always and with /deployit ..
will need to do a check for that otherwise results may vary
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
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
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:
concat{$security_config_file:
ensure => present,
owner => $os_user,
group => $os_group,
mode => '0640'
}
Again the user and the group.
We should enhance the code coverage for the module ..
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
Module should support Ubuntu like operating systems.
Please add the option to only install the xldeploy cli.
Usage example:
class{xldeploy::cli:}
I would rather only install xldeploy::server and not automatically also the cli with it. We have xldeploy::cli to do that.
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
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',
}
when de xldeploy_ci type and provider are used and the rest_url is incorrect the output is very vague.
I'm thinking of checking the url for connectivity prior to executing the rest call itself ..
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
use new xldeploy communication libraries
the home dir of the os user should be more configurable
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
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'
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
in config.pp there are a couple of references to puppetfiles file sources in the module itself . These are used to rollout hotfixes plugins an various other files
Make enabling clustering available in the module.
See http://docs.xebialabs.com/releases/4.5/xl-deploy/systemadminmanual.html#clustering
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
#Xldeploy::Resources::Defaultsetting['overthere.SshHost.privateKeyFile']
#-> Sshkeys::Create_key[$os_user]
$keyfile_passphrase = random_passphrase()
#sshkeys::create_key { $os_user:
#}
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:in
find'
/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:in
retrieve_new_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:in thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:in
realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:in thinmark' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:255:in
retrieve_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:in
prepare_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:in
run'
/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:in
run'
/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:in
run'
/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:in
run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in
controlled_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:in
onetime'
/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:in
run'
/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:in
run'
/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:in
run'
/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:in
execute'
/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:in
find'
/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:in
retrieve_new_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:in thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:in
realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:in thinmark' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:255:in
retrieve_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:in
prepare_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:in
run'
/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:in
run'
/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:in
run'
/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:in
run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in
controlled_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:in
onetime'
/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:in
run'
/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:in
run'
/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:in
run'
/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:in
execute'
/usr/bin/puppet:8
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
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:
$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
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
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
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
do fix ..
We need more documentation on the various parameters of the module.
Because read the fracking code is just no gonna cut it
plz fix
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 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==
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.