Project

General

Profile

FAQ » History » Version 29

Romain Vrignaud, 10/26/2011 03:53 AM

1 13 Ohad Levy
{{toc}}
2 1 Ohad Levy
3 12 Ohad Levy
h1. I'm not using Storeconfigs, how can I still use Foreman?
4 1 Ohad Levy
5 17 Ohad Levy
See [[Puppet Facts]]
6 1 Ohad Levy
7 1 Ohad Levy
h1. I'm using Storeconfigs, how can I populate various settings in Foreman that are required for hands free (unattended) installations?
8 1 Ohad Levy
9 17 Ohad Levy
See [[Puppet Facts]]
10 1 Ohad Levy
11 5 Ohad Levy
h1. How do I use unattended installations (Kickstart, jumpstart, preseed)?
12 1 Ohad Levy
13 1 Ohad Levy
see [[Unattended installations]]
14 10 Ohad Levy
15 24 Ohad Levy
h1. I don't want to use Foreman for unattended installations can I disable it?
16 22 Ohad Levy
17 22 Ohad Levy
yes, edit config/settings.yaml and add this line:
18 22 Ohad Levy
19 22 Ohad Levy
<pre>
20 22 Ohad Levy
:unattended: false
21 22 Ohad Levy
</pre>
22 22 Ohad Levy
23 1 Ohad Levy
and restart your foreman instance.
24 24 Ohad Levy
25 24 Ohad Levy
This will will not ask you to enter additional information (e.g. mac address etc)
26 23 Ohad Levy
27 22 Ohad Levy
28 12 Ohad Levy
h1. How do I use Foreman with Puppet external nodes?
29 5 Ohad Levy
30 1 Ohad Levy
see [[External Nodes]]
31 8 Ohad Levy
32 18 Ohad Levy
h1. But I'm already Using External nodes!
33 18 Ohad Levy
34 18 Ohad Levy
see [[External Nodes#Import-your-external-node-setup-from-an-older-external-node-setup]]
35 18 Ohad Levy
36 1 Ohad Levy
h1. Where is the DB?!
37 5 Ohad Levy
38 12 Ohad Levy
By default, Foreman will use sqlite3 as a database, its configuration can be found at 
39 1 Ohad Levy
<pre>config/database.yml</pre>
40 1 Ohad Levy
By default, the  database can be found at the db subdirectory.
41 12 Ohad Levy
Foreman is a rails application, therefor, anything that is supported under RAILS (sqlite, mysql, postsql, oracle etc) can be used.
42 1 Ohad Levy
43 20 Ohad Levy
h1. I want to use MySQL
44 20 Ohad Levy
45 20 Ohad Levy
edit your config/database.yml and modify:
46 20 Ohad Levy
<pre>
47 20 Ohad Levy
production:
48 20 Ohad Levy
  adapter: mysql
49 20 Ohad Levy
  database: puppet
50 20 Ohad Levy
  username: puppet
51 20 Ohad Levy
  password: password
52 20 Ohad Levy
  host: localhost
53 20 Ohad Levy
  socket: "/var/run/mysqld/mysqld.sock"
54 20 Ohad Levy
</pre>
55 20 Ohad Levy
56 27 Ohad Levy
afterwards you would need to re populate your database, simply execute extras/dbmigrate script.
57 27 Ohad Levy
58 20 Ohad Levy
59 5 Ohad Levy
h1. What about other operating systems?
60 1 Ohad Levy
61 12 Ohad Levy
Foreman currently supports RedHat/Fedora, Debian/Ubuntu and Solaris Jumpstart
62 1 Ohad Levy
it has been successfully tested on CentOS 3,4,5 Fedora 10-11, Ubuntu 9.04 and Solaris 8-10 on Sparc.
63 1 Ohad Levy
64 12 Ohad Levy
If you have any other operating system you would like to see added to Foreman, please contact us and we would be happy to add it.
65 1 Ohad Levy
66 1 Ohad Levy
for Jumpstart support, as Solaris doesn't support nativity accessing the profile data dynamically, its required to create some workarounds
67 1 Ohad Levy
example for those are found at the *extras/jumpstart* directory.
68 1 Ohad Levy
You may find the dynamic profile and dynamic finish at the following URL's:
69 12 Ohad Levy
<pre><code>http://Foremanhost:3000/unattended/jumpstart_profile
70 12 Ohad Levy
http://Foremanhost:3000/unattended/jumpstart_finish</code></pre>
71 1 Ohad Levy
72 1 Ohad Levy
It is also required to add vendor options to your dhcp server if you plan to boot from network on the sparc platform.
73 14 Ohad Levy
74 14 Ohad Levy
h1. Will Foreman manage non OpenSource services (e.g. DNS/DHCP etc) ?
75 14 Ohad Levy
76 14 Ohad Levy
Yes! we understand that many enterprises relay on non opensource infrastrucutre as well
77 25 Ohad Levy
Currently it is plan to support MS DNS and -DHCP- services (its actually easier than -ISC DHCP- and BIND).
78 25 Ohad Levy
(done already)
79 14 Ohad Levy
If you have any additional requirements, please enter a feature request.
80 14 Ohad Levy
81 28 James Martin
h1. How do I fix this error: "Unable to find directory $confdir/environments/$environment/modules in environment master" ?
82 28 James Martin
83 28 James Martin
If you've followed http://docs.puppetlabs.com/guides/environment.html#configuring-environments-on-the-puppet-master to 
84 28 James Martin
create a multi-environment puppet configuration, you're initial rake may look something like this:
85 28 James Martin
<pre>
86 28 James Martin
rake puppet:import:puppet_classes RAILS_ENV=production
87 28 James Martin
(in /usr/share/foreman)
88 28 James Martin
Evaluating possible changes to your installation
89 28 James Martin
Problems were detected during the evaluation phase
90 28 James Martin
91 28 James Martin
Unable to find directory $confdir/environments/$environment/modules in environment master
92 28 James Martin
93 28 James Martin
Please fix these issues and try again
94 28 James Martin
</pre>
95 28 James Martin
This is because Foreman does not currently evaluate $confdir.  There is a feature request open on this issue.  In the 
96 28 James Martin
meantime, hard code your $confdir in your puppet.conf.
97 28 James Martin
98 29 Romain Vrignaud
h1. How do I fix the puppet class import problem with multiple puppet environment ?
99 29 Romain Vrignaud
100 29 Romain Vrignaud
If Foreman don't seems to be aware of all your environment and is able to import only your "production" environment (see http://theforeman.org/issues/1159),
101 29 Romain Vrignaud
try to add ":puppetconfdir: /etc/puppet/puppet.conf" in your settings.yaml.
102 29 Romain Vrignaud
103 29 Romain Vrignaud
104 28 James Martin
105 14 Ohad Levy
106 14 Ohad Levy
h1. Whats planned for the next major release?
107 1 Ohad Levy
108 14 Ohad Levy
The next major release of The Foreman will include DNS and DHCP management, this should allow:
109 26 Ohad Levy
* -Subnet management (e.g. install servers in different subnets with no effort)-
110 26 Ohad Levy
* -IP address management, Foreman will suggest you free IP Addresses, and basically allow you to relay on it to manage your IP address assignments.-
111 26 Ohad Levy
Already done
112 14 Ohad Levy
113 14 Ohad Levy
If you want additional features, please open a new feature request!