{"action":"created","issue":{"url":"https://api.github.com/repos/abstractitptyltd/abstractit-puppet/issues/71","labels_url":"https://api.github.com/repos/abstractitptyltd/abstractit-puppet/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/abstractitptyltd/abstractit-puppet/issues/71/comments","events_url":"https://api.github.com/repos/abstractitptyltd/abstractit-puppet/issues/71/events","html_url":"https://github.com/abstractitptyltd/abstractit-puppet/issues/71","id":127310602,"number":71,"title":"Using puppetdb = true with server_type = 'puppetserver' doesn't seem to work","user":{"login":"jharlow1","id":9722701,"avatar_url":"https://avatars.githubusercontent.com/u/9722701?v=3","gravatar_id":"","url":"https://api.github.com/users/jharlow1","html_url":"https://github.com/jharlow1","followers_url":"https://api.github.com/users/jharlow1/followers","following_url":"https://api.github.com/users/jharlow1/following{/other_user}","gists_url":"https://api.github.com/users/jharlow1/gists{/gist_id}","starred_url":"https://api.github.com/users/jharlow1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jharlow1/subscriptions","organizations_url":"https://api.github.com/users/jharlow1/orgs","repos_url":"https://api.github.com/users/jharlow1/repos","events_url":"https://api.github.com/users/jharlow1/events{/privacy}","received_events_url":"https://api.github.com/users/jharlow1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-18T21:02:54Z","updated_at":"2016-01-18T23:20:39Z","closed_at":null,"body":" ```\r\nclass { puppet::profile::agent:\r\n   puppet_server => $::fqdn,\r\n }\r\n \r\n class { puppet::profile::master:\r\n   server_type         => 'puppetserver',\r\n   puppet_service_name => 'puppetserver',\r\n   puppetdb            => true,\r\n   puppetdb_server     => $::fqdn,\r\n   puppetdb_version    => '2.3.8-1.el6',\r\n }\r\n```\r\n\r\nThis results in what appears to be a chicken/egg problem...PuppetDB needs the puppetserver service to start up before it does anything (in order to generate certificates). However, if it knows the proper service name (puppetserver) to restart, then it tries to start up puppetdb before it gets around to starting puppetserver and the startup fails because there aren't any certs.\r\n\r\nRan into similar issue with the foreman puppet module, and can't seem to find a viable workaround aside from manually doing a puppet apply of the puppet server parts then the puppetdb parts....am I missing something ?"},"comment":{"url":"https://api.github.com/repos/abstractitptyltd/abstractit-puppet/issues/comments/172679213","html_url":"https://github.com/abstractitptyltd/abstractit-puppet/issues/71#issuecomment-172679213","issue_url":"https://api.github.com/repos/abstractitptyltd/abstractit-puppet/issues/71","id":172679213,"user":{"login":"rendhalver","id":1026337,"avatar_url":"https://avatars.githubusercontent.com/u/1026337?v=3","gravatar_id":"","url":"https://api.github.com/users/rendhalver","html_url":"https://github.com/rendhalver","followers_url":"https://api.github.com/users/rendhalver/followers","following_url":"https://api.github.com/users/rendhalver/following{/other_user}","gists_url":"https://api.github.com/users/rendhalver/gists{/gist_id}","starred_url":"https://api.github.com/users/rendhalver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rendhalver/subscriptions","organizations_url":"https://api.github.com/users/rendhalver/orgs","repos_url":"https://api.github.com/users/rendhalver/repos","events_url":"https://api.github.com/users/rendhalver/events{/privacy}","received_events_url":"https://api.github.com/users/rendhalver/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T23:20:39Z","updated_at":"2016-01-18T23:20:39Z","body":"Yeah this is a bit of a chicken egg problem.\r\n\r\nI used to have the module setup so you could actually bootstrap it from scratch with puppet apply but I don't know if that will work anymore.\r\n\r\nI will reinvestigate that and see if it can be fixed."}}