{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/508","repository_url":"https://api.github.com/repos/jenkinsci/puppet-jenkins","labels_url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/508/comments","events_url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/508/events","html_url":"https://github.com/jenkinsci/puppet-jenkins/pull/508","id":137766587,"number":508,"title":"Support custom config.xml via template","user":{"login":"patcadelina","id":3993308,"avatar_url":"https://avatars.githubusercontent.com/u/3993308?v=3","gravatar_id":"","url":"https://api.github.com/users/patcadelina","html_url":"https://github.com/patcadelina","followers_url":"https://api.github.com/users/patcadelina/followers","following_url":"https://api.github.com/users/patcadelina/following{/other_user}","gists_url":"https://api.github.com/users/patcadelina/gists{/gist_id}","starred_url":"https://api.github.com/users/patcadelina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcadelina/subscriptions","organizations_url":"https://api.github.com/users/patcadelina/orgs","repos_url":"https://api.github.com/users/patcadelina/repos","events_url":"https://api.github.com/users/patcadelina/events{/privacy}","received_events_url":"https://api.github.com/users/patcadelina/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/labels/feedback-needed","name":"feedback-needed","color":"0052cc"},{"url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/labels/needs-tests","name":"needs-tests","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-02T04:07:15Z","updated_at":"2016-03-08T10:36:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/pulls/508","html_url":"https://github.com/jenkinsci/puppet-jenkins/pull/508","diff_url":"https://github.com/jenkinsci/puppet-jenkins/pull/508.diff","patch_url":"https://github.com/jenkinsci/puppet-jenkins/pull/508.patch"},"body":"Adds custom config.xml template for managing `authorizationStrategy`, `securityRealm` and `views` among other things."},"comment":{"url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/comments/193714684","html_url":"https://github.com/jenkinsci/puppet-jenkins/pull/508#issuecomment-193714684","issue_url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/508","id":193714684,"user":{"login":"patcadelina","id":3993308,"avatar_url":"https://avatars.githubusercontent.com/u/3993308?v=3","gravatar_id":"","url":"https://api.github.com/users/patcadelina","html_url":"https://github.com/patcadelina","followers_url":"https://api.github.com/users/patcadelina/followers","following_url":"https://api.github.com/users/patcadelina/following{/other_user}","gists_url":"https://api.github.com/users/patcadelina/gists{/gist_id}","starred_url":"https://api.github.com/users/patcadelina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcadelina/subscriptions","organizations_url":"https://api.github.com/users/patcadelina/orgs","repos_url":"https://api.github.com/users/patcadelina/repos","events_url":"https://api.github.com/users/patcadelina/events{/privacy}","received_events_url":"https://api.github.com/users/patcadelina/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T10:36:14Z","updated_at":"2016-03-08T10:36:14Z","body":"I'm getting acceptance test failure in `master` branch as what was caught in Travis as well.\r\n```\r\n$ bundle exec rake acceptance\r\n/usr/bin/ruby2.1 -I/home/patrick/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.3/lib:/home/patrick/.rvm/gems/ruby-2.1.5/gems/rspec-support-3.4.1/lib /home/patrick/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.3/exe/rspec spec/acceptance\r\n/home/patrick/.rvm/gems/ruby-2.1.5/gems/beaker-rspec-5.3.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS\r\n/home/patrick/.rvm/gems/ruby-2.1.5/gems/specinfra-2.52.0/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here\r\nBeaker::Hypervisor, found some vagrant boxes to create\r\nBringing machine 'ubuntu-server-12042-x64' up with 'virtualbox' provider...\r\n==> ubuntu-server-12042-x64: Importing base box 'ubuntu-server-12042-x64-vbox4210-nocm'...\r\nProgress: 10%Progress: 20%Progress: 40%Progress: 60%Progress: 80%Progress: 90%==> ubuntu-server-12042-x64: Matching MAC address for NAT networking...\r\n==> ubuntu-server-12042-x64: Setting the name of the VM: defaultyml_ubuntu-server-12042-x64_1457427498270_33534\r\n==> ubuntu-server-12042-x64: Clearing any previously set forwarded ports...\r\n==> ubuntu-server-12042-x64: Fixed port collision for 22 => 2222. Now on port 2200.\r\n==> ubuntu-server-12042-x64: Clearing any previously set network interfaces...\r\n==> ubuntu-server-12042-x64: Preparing network interfaces based on configuration...\r\n    ubuntu-server-12042-x64: Adapter 1: nat\r\n    ubuntu-server-12042-x64: Adapter 2: hostonly\r\n==> ubuntu-server-12042-x64: Forwarding ports...\r\n    ubuntu-server-12042-x64: 22 (guest) => 2200 (host) (adapter 1)\r\n==> ubuntu-server-12042-x64: Running 'pre-boot' VM customizations...\r\n==> ubuntu-server-12042-x64: Booting VM...\r\n==> ubuntu-server-12042-x64: Waiting for machine to boot. This may take a few minutes...\r\n    ubuntu-server-12042-x64: SSH address: 127.0.0.1:2200\r\n    ubuntu-server-12042-x64: SSH username: vagrant\r\n    ubuntu-server-12042-x64: SSH auth method: private key\r\n==> ubuntu-server-12042-x64: Machine booted and ready!\r\n==> ubuntu-server-12042-x64: Checking for guest additions in VM...\r\n    ubuntu-server-12042-x64: The guest additions on this VM do not match the installed version of\r\n    ubuntu-server-12042-x64: VirtualBox! In most cases this is fine, but in rare cases it can\r\n    ubuntu-server-12042-x64: prevent things such as shared folders from working properly. If you see\r\n    ubuntu-server-12042-x64: shared folder errors, please make sure the guest additions within the\r\n    ubuntu-server-12042-x64: virtual machine match the version of VirtualBox you have installed on\r\n    ubuntu-server-12042-x64: your host and reload your VM.\r\n    ubuntu-server-12042-x64: \r\n    ubuntu-server-12042-x64: Guest Additions Version: 4.2.10\r\n    ubuntu-server-12042-x64: VirtualBox Version: 4.3\r\n==> ubuntu-server-12042-x64: Setting hostname...\r\n==> ubuntu-server-12042-x64: Configuring and enabling network interfaces...\r\n==> ubuntu-server-12042-x64: Mounting shared folders...\r\n    ubuntu-server-12042-x64: /vagrant => /home/patrick/dev/sources/pat/puppet-jenkins/.vagrant/beaker_vagrant_files/default.yml\r\nWarning: ssh connection to ubuntu-server-12042-x64 has been terminated\r\nWarning: ssh connection to ubuntu-server-12042-x64 has been terminated\r\nDisabling updates.puppetlabs.com by modifying hosts file to resolve updates to 127.0.0.1 on ubuntu-server-12042-x64\r\n\r\nRandomized with seed 20798\r\nlocalhost $ scp /home/patrick/dev/sources/pat/puppet-jenkins ubuntu-server-12042-x64:/etc/puppet/modules {:ignore => [\".bundle\", \".git\", \".idea\", \".vagrant\", \".vendor\", \"vendor\", \"acceptance\", \"bundle\", \"spec\", \"tests\", \"log\", \".\", \"..\"]}\r\n\r\njenkins::job\r\n  disable\r\nlocalhost $ scp /tmp/beaker20160308-21311-1e4qduv ubuntu-server-12042-x64:/tmp/apply_manifest.pp.NnocqH {:ignore => }\r\n    should work with no errors\r\n    File \"/var/lib/jenkins/jobs/test-build-job/config.xml\"\r\n      should be file\r\n      should contain \"<disabled>true</disabled>\"\r\n      should be mode 644\r\n      should contain \"<description>test job</description>\"\r\n      should contain \"<command>/usr/bin/true</command>\"\r\n      should be owned by \"jenkins\"\r\n      should be grouped into \"jenkins\"\r\n  create\r\nlocalhost $ scp /tmp/beaker20160308-21311-14r8i1k ubuntu-server-12042-x64:/tmp/apply_manifest.pp.yhONzq {:ignore => }\r\n    should work with no errors\r\n    File \"/var/lib/jenkins/jobs/test-build-job/config.xml\"\r\n      should be grouped into \"jenkins\"\r\n      should be mode 644\r\n      should be owned by \"jenkins\"\r\n      should contain \"<description>test job</description>\"\r\n      should be file\r\n      should contain \"<command>/usr/bin/true</command>\"\r\n      should contain \"<disabled>false</disabled>\"\r\n  delete\r\nlocalhost $ scp /tmp/beaker20160308-21311-u7yb0n ubuntu-server-12042-x64:/tmp/apply_manifest.pp.RHlUVX {:ignore => }\r\nlocalhost $ scp /tmp/beaker20160308-21311-hj7rzj ubuntu-server-12042-x64:/tmp/apply_manifest.pp.jDGASF {:ignore => }\r\n    should work with no errors\r\n    File \"/var/lib/jenkins/jobs/test-build-job/config.xml\"\r\n      should not be file\r\n\r\njenkins class\r\n  default parameters\r\nlocalhost $ scp /tmp/beaker20160308-21311-8mniqj ubuntu-server-12042-x64:/tmp/apply_manifest.pp.7pFKiE {:ignore => }\r\nlocalhost $ scp /tmp/beaker20160308-21311-1sfxom0 ubuntu-server-12042-x64:/tmp/apply_manifest.pp.F3w4NB {:ignore => }\r\n    should work with no errors\r\n    File \"/var/lib/jenkins/plugins/git.hpi\"\r\n      should be file\r\n\r\njenkins class\r\n  slaveagentport\r\nlocalhost $ scp /tmp/beaker20160308-21311-7mkap4 ubuntu-server-12042-x64:/tmp/apply_manifest.pp.YzPcGF {:ignore => }\r\nlocalhost $ scp /tmp/beaker20160308-21311-8lovho ubuntu-server-12042-x64:/tmp/apply_manifest.pp.dg9bbi {:ignore => }\r\n    should work with no errors\r\n    Service \"jenkins\"\r\n      should be running\r\n      should be enabled\r\n    File \"/var/lib/jenkins/config.xml\"\r\n      should contain \"  <slaveAgentPort>7777</slaveAgentPort>\"\r\n    Port \"8080\"\r\n      should be listening\r\n  default parameters\r\nlocalhost $ scp /tmp/beaker20160308-21311-5olscw ubuntu-server-12042-x64:/tmp/apply_manifest.pp.2BsZ39 {:ignore => }\r\nlocalhost $ scp /tmp/beaker20160308-21311-guh1dn ubuntu-server-12042-x64:/tmp/apply_manifest.pp.9dsrcg {:ignore => }\r\n    should work with no errors\r\n    Port \"8080\"\r\n      should be listening\r\n    Service \"jenkins\"\r\n      should be enabled\r\n      should be running\r\n    File \"/usr/lib/jenkins/jenkins-cli.jar\"\r\n      should be file (FAILED - 1)\r\nWarning: ssh connection to ubuntu-server-12042-x64 has been terminated\r\nDestroying vagrant boxes\r\n==> ubuntu-server-12042-x64: Forcing shutdown of VM...\r\n==> ubuntu-server-12042-x64: Destroying VM and associated drives...\r\n\r\nFailures:\r\n\r\n  1) jenkins class default parameters File \"/usr/lib/jenkins/jenkins-cli.jar\" should be file\r\n     Failure/Error: it { should be_file }\r\n       expected `File \"/usr/lib/jenkins/jenkins-cli.jar\".file?` to return true, got false\r\n       \r\n     # ./spec/acceptance/class_spec.rb:26:in `block (4 levels) in <top (required)>'\r\n\r\nFinished in 9 minutes 39 seconds (files took 2 minutes 0.9 seconds to load)\r\n30 examples, 1 failure\r\n\r\nFailed examples:\r\n\r\nrspec ./spec/acceptance/class_spec.rb:26 # jenkins class default parameters File \"/usr/lib/jenkins/jenkins-cli.jar\" should be file\r\n\r\nRandomized with seed 20798\r\n\r\n/usr/bin/ruby2.1 -I/home/patrick/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.3/lib:/home/patrick/.rvm/gems/ruby-2.1.5/gems/rspec-support-3.4.1/lib /home/patrick/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.4.3/exe/rspec spec/acceptance failed\r\n```"}}