Project

General

Profile

PuppetThreeWorkarounds » History » Version 15

Dominic Cleal, 01/03/2013 06:00 AM
#2065 / sudoers

1 1 Greg Sutcliffe
h1. PuppetThreeWorkarounds
2
3
{{toc}}
4
5
This page details the various fixes for making Foreman work with Puppet 3. If your issue is not listed, please open a bug report on the issue tracker, and detail appropriate workarounds (with link to the bug number) here.
6
7 6 Dominic Cleal
h2. Status
8 1 Greg Sutcliffe
9 12 Dominic Cleal
Currently Foreman 1.1 (release candidate) works reliably with Puppet 3.  Ensure you update both the Foreman UI and the Smart Proxy.
10 1 Greg Sutcliffe
11 12 Dominic Cleal
* "Foreman 1.1 RC .debs":http://groups.google.com/group/foreman-users/browse_thread/thread/a813711326d89685
12
* "Foreman 1.1 RC RPMs":http://groups.google.com/group/foreman-users/browse_thread/thread/b17e33c701839c28
13
14
If you hit any other issues, please let us know on the bug tracker, IRC, or the mailing lists.
15
16 6 Dominic Cleal
h2. Fixed issues
17 1 Greg Sutcliffe
18 6 Dominic Cleal
The develop branch contains fixes for the following issues:
19 1 Greg Sutcliffe
20 6 Dominic Cleal
* uninitialized constant HostObserver (#1872)
21 7 Dominic Cleal
* could not find value for $confdir (Puppet::Settings::InterpolationError) (#1915)
22
* report processing seems to work but the summaries are all zero (#1872)
23 6 Dominic Cleal
* cannot view certificates that are present on the proxy
24
** ensure sudo rules allow access to @/usr/bin/puppet@ now instead of @/usr/sbin/puppetca@ (foreman-installer has already been updated)
25 7 Dominic Cleal
* cannot import classes, "Attempting to initialize global default settings more than once!" (#1915, #1950)
26 10 Dominic Cleal
* proxy @:puppet_conf@ setting required (#1983)
27 11 Dominic Cleal
* @:puppetconfdir@ setting required (#1994)
28
* @$vardir@ interpolation problems (#1994)
29 4 Sam Kottler
30 6 Dominic Cleal
h2. Remaining issues
31 5 Sam Kottler
32 6 Dominic Cleal
h3. Proxy complains of autosign permissions issues
33 1 Greg Sutcliffe
34
The current version of Puppet ignores the file permissions settings in puppet.conf. In other words, this doesn't work:
35
36
    [master]
37
      autosign       = /etc/puppet/autosign.conf { mode = 664 }
38
39
However, for the moment, it's so broken that puppet will not fix the ownership of the file, so you can run this instead:
40
41
    chown foreman-proxy:puppet /etc/puppet/autosign.conf
42
43
Alternatively, you could try moving it to the [main] section of the puppet.conf, which also seems to fix the problem.
44 8 Dominic Cleal
45
Logged with patch as Puppet "issue #17371":http://projects.puppetlabs.com/issues/17371.
46
47 15 Dominic Cleal
h3. #2065: sudoers needs configuring for @puppet kick@
48 13 Dominic Cleal
49 15 Dominic Cleal
The Foreman installer needs to configure sudoers for @puppet kick@ instead of @puppetrun@.  See [[Puppetrun]] for example configuration.
50 13 Dominic Cleal
51 14 Dominic Cleal
h3. #2085: proxy not importing first module
52
53
When importing classes or environments, the proxy scans through all the modules in the module search path in puppet.conf.  With Puppet 3, it isn't initialising correctly and so ignores the first module found - subsequent modules are found.  If this is the only module, it won't discover the environment at all.
54
55 8 Dominic Cleal
h3. #1997: facts not importing (unconfirmed)
56
57
Issue #1997 reports MySQL errors while importing facts, e.g.
58
59 1 Greg Sutcliffe
    Started POST "/fact_values/create" for xxxxxxxx at Wed Dec 05 16:01:05 +0800 2012
60
Processing by FactValuesController#create as
61
Parameters: {"facts"=>"[FILTERED]"}
62
Failed to import facts: Mysql2::Error: Column 'name' cannot be null: ...