{"action":"created","issue":{"url":"https://api.github.com/repos/antoineco/aco-tomcat/issues/47","repository_url":"https://api.github.com/repos/antoineco/aco-tomcat","labels_url":"https://api.github.com/repos/antoineco/aco-tomcat/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/antoineco/aco-tomcat/issues/47/comments","events_url":"https://api.github.com/repos/antoineco/aco-tomcat/issues/47/events","html_url":"https://github.com/antoineco/aco-tomcat/issues/47","id":163444103,"number":47,"title":"PE ignores systemd_service_type param","user":{"login":"ngeorgieff","id":2789581,"avatar_url":"https://avatars.githubusercontent.com/u/2789581?v=3","gravatar_id":"","url":"https://api.github.com/users/ngeorgieff","html_url":"https://github.com/ngeorgieff","followers_url":"https://api.github.com/users/ngeorgieff/followers","following_url":"https://api.github.com/users/ngeorgieff/following{/other_user}","gists_url":"https://api.github.com/users/ngeorgieff/gists{/gist_id}","starred_url":"https://api.github.com/users/ngeorgieff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngeorgieff/subscriptions","organizations_url":"https://api.github.com/users/ngeorgieff/orgs","repos_url":"https://api.github.com/users/ngeorgieff/repos","events_url":"https://api.github.com/users/ngeorgieff/events{/privacy}","received_events_url":"https://api.github.com/users/ngeorgieff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-01T17:52:20Z","updated_at":"2016-07-06T17:47:13Z","closed_at":null,"body":"I just noticed in my lab env that PE 2016.2/RHEL 7.2 is ignoring systemd_service_type parameter.\r\nI need to set the parameter to forking but PE ignores it. It works with on RHEL7.2/Puppet OSS.\r\n\r\nclass { '::tomcat':\r\n  version              => '8.0.23',\r\n  install_from         => 'archive',\r\n  systemd_service_type => 'forking',\r\n  java_home            => '/usr/java/default',\r\n  service_name         => 'tomcat',\r\n  tomcat_user          => 'tomcat',\r\n  admin_webapps        => true,\r\n  create_default_admin => true,\r\n  admin_user           => 'admin',\r\n  admin_password       => 'password',\r\n  config_path          => '/usr/local/tomcat/bin/setenv.sh',\r\n  catalina_home        => '/usr/local/tomcat',\r\n  java_opts            => ['-server', '-Xmx8192M', '-Xms8192M', '-XX:+DoEscapeAnalysis', '-XX:+UseCompressedOops', '-XX:+UseG1GC', '-XX:MaxGCPauseMillis=500', '-XX:+PrintGCDateStamps', '-Xloggc:/var/log/tomcat/gc.log', '-javaagent:/opt/AppDynamics/AppServerAgent/Current/javaagent.jar' ],\r\n  host_autodeploy      => true,\r\n  ajp_connector        => true,\r\n  ajp_port             => 8009,\r\n  ajp_params           => {\r\n            'address'    => '127.0.0.1',\r\n            'packetSize' => 12288 },\r\n}"},"comment":{"url":"https://api.github.com/repos/antoineco/aco-tomcat/issues/comments/230850408","html_url":"https://github.com/antoineco/aco-tomcat/issues/47#issuecomment-230850408","issue_url":"https://api.github.com/repos/antoineco/aco-tomcat/issues/47","id":230850408,"user":{"login":"antoineco","id":3299086,"avatar_url":"https://avatars.githubusercontent.com/u/3299086?v=3","gravatar_id":"","url":"https://api.github.com/users/antoineco","html_url":"https://github.com/antoineco","followers_url":"https://api.github.com/users/antoineco/followers","following_url":"https://api.github.com/users/antoineco/following{/other_user}","gists_url":"https://api.github.com/users/antoineco/gists{/gist_id}","starred_url":"https://api.github.com/users/antoineco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoineco/subscriptions","organizations_url":"https://api.github.com/users/antoineco/orgs","repos_url":"https://api.github.com/users/antoineco/repos","events_url":"https://api.github.com/users/antoineco/events{/privacy}","received_events_url":"https://api.github.com/users/antoineco/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T17:47:13Z","updated_at":"2016-07-06T17:47:13Z","body":"`$tomcat_user` and `$tomcat_group` are blank as well apparently.\r\n\r\nI suspect that's because these variables are not forwarded in the [archive.pp manifest](https://github.com/antoineco/aco-tomcat/blob/master/manifests/service/archive.pp#L12-L15), although they're used in [systemd templates](https://github.com/antoineco/aco-tomcat/blob/d8d8071512a0d9150cdb388d8950ccab980e43db/templates/instance/systemd_unit_rhel.erb#L6). I'm actually surprised this ever worked on Puppet 4! Nice catch."}}
{"actor":{"display_login":"antoineco"}}