Ubuntu 12.04 Precise Preseed Templates

Does anyone here have a set of working Precise templates they'd be willing
to share? I'm working through the process of creating a set, but I'd hate
to repeat existing work if it's not necessary.

-Ryan

The default Preseed{, PXELinux, Finish} templates worked for me in
Ubuntu 12.04, last time I tried it (a month or so back). What sort of
problems are you having?

Cheers,
Greg

··· On 14/06/12 17:20, Ryan Bourgeois wrote: > Does anyone here have a set of working Precise templates they'd be > willing to share? I'm working through the process of creating a > set, but I'd hate to repeat existing work if it's not necessary. > > -Ryan

Our Ubuntu 12.04 provision templates for preseed and PXE can be found here:

https://gist.github.com/2931362 (preseed)
https://gist.github.com/2931367 (PXE)

I had to play around quite a while before I found a combination of
parameter names and values for locales, keyboard layouts, languages,
etc. that worked. Some have to be set at PXE level, some in the preseed
file. There may be some redundancy there, but this is what worked for
us. Also be mindful of parameters that are specific to our Foreman
installation and infrastructure (such as root password, proxy/cacher, etc).

HTH

Andreas

··· On 2012-06-14 18:20, Ryan Bourgeois wrote: > Does anyone here have a set of working Precise templates they'd be > willing to share? I'm working through the process of creating a set, but > I'd hate to repeat existing work if it's not necessary.

Basically that I have to manually do the entire installation. Though now
that you say it works, I'm thinking there's something else wrong.

And sure enough, a wget http://foreman/unattended/provision from the
installing server gives me a file with "Failed to clean any old
certificates or add the autosign entry. Terminating the build!"

So I'll fix that and see what's up.

-Ryan

··· On Thu, Jun 14, 2012 at 11:33 AM, Greg Sutcliffe wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14/06/12 17:20, Ryan Bourgeois wrote:

Does anyone here have a set of working Precise templates they’d be
willing to share? I’m working through the process of creating a
set, but I’d hate to repeat existing work if it’s not necessary.

-Ryan

The default Preseed{, PXELinux, Finish} templates worked for me in
Ubuntu 12.04, last time I tried it (a month or so back). What sort of
problems are you having?

Cheers,
Greg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/aEmQACgkQ8O7RN8oK65MrZACfY1MCC/b/2wKk9CAExSWr4K4w
AicAoKUS+LM2d+CoU2GfwaLWXwpFOuGi
=X9l0
-----END PGP SIGNATURE-----


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

Sounds like you might have the classic smart-proxy-sudo problem, where
a spoof-render of the template works, but wget-ing it on the client
fails. Ensure your proxy user can run "sudo puppetca" and such variants.

Greg

··· On 14/06/12 17:37, Ryan Bourgeois wrote: > Basically that I have to manually do the entire installation. > Though now that you say it works, I'm thinking there's something > else wrong. > > And sure enough, a wget http://foreman/unattended/provision from > the installing server gives me a file with "Failed to clean any > old certificates or add the autosign entry. Terminating the > build!" > > So I'll fix that and see what's up. > > -Ryan

You are mostly correct. Spoof rendering does give me the correct file.
However, the proxy logs indicate there's no permissions to modify the
autosign.conf file, and there wasn't. I didn't realize puppet resets the
mode on that file when it runs, so I set the appropriate configs in the
puppet.conf file. I'm trying it out now.

-Ryan

··· On Thu, Jun 14, 2012 at 11:41 AM, Greg Sutcliffe wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14/06/12 17:37, Ryan Bourgeois wrote:

Basically that I have to manually do the entire installation.
Though now that you say it works, I’m thinking there’s something
else wrong.

And sure enough, a wget http://foreman/unattended/provision from
the installing server gives me a file with “Failed to clean any
old certificates or add the autosign entry. Terminating the
build!”

So I’ll fix that and see what’s up.

-Ryan

Sounds like you might have the classic smart-proxy-sudo problem, where
a spoof-render of the template works, but wget-ing it on the client
fails. Ensure your proxy user can run “sudo puppetca” and such variants.

Greg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/aFEcACgkQ8O7RN8oK65MRcgCgiAVgGXIwrOvBaINp3rr52DaA
wu8AoKoJrdFHWb+FpxU6j497+9WkMr8M
=JuKB
-----END PGP SIGNATURE-----

Looks like that fixed my issue. It's picking up the templates and
processing them. I've got my next problem, though. It gave me a "Cannot
find root partition" or something or another. So my partitioning is wrong.
I used the "Ubuntu custom LVM" partition snippet but changes sda to vda
since I'm on KVM. I'm trying the "Ubuntu default" template now to see how
it goes.

Andreas, thanks for the templates.

-Ryan

··· On Thu, Jun 14, 2012 at 11:44 AM, Ryan Bourgeois wrote:

You are mostly correct. Spoof rendering does give me the correct file.
However, the proxy logs indicate there’s no permissions to modify the
autosign.conf file, and there wasn’t. I didn’t realize puppet resets the
mode on that file when it runs, so I set the appropriate configs in the
puppet.conf file. I’m trying it out now.

-Ryan

On Thu, Jun 14, 2012 at 11:41 AM, Greg Sutcliffe gsutcliffe@ibahn.comwrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14/06/12 17:37, Ryan Bourgeois wrote:

Basically that I have to manually do the entire installation.
Though now that you say it works, I’m thinking there’s something
else wrong.

And sure enough, a wget http://foreman/unattended/provision from
the installing server gives me a file with “Failed to clean any
old certificates or add the autosign entry. Terminating the
build!”

So I’ll fix that and see what’s up.

-Ryan

Sounds like you might have the classic smart-proxy-sudo problem, where
a spoof-render of the template works, but wget-ing it on the client
fails. Ensure your proxy user can run “sudo puppetca” and such variants.

Greg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/aFEcACgkQ8O7RN8oK65MRcgCgiAVgGXIwrOvBaINp3rr52DaA
wu8AoKoJrdFHWb+FpxU6j497+9WkMr8M
=JuKB
-----END PGP SIGNATURE-----

I have added another Gist containing our all-LVM partition table for
KVM-based VMs (usually on a 10GB LV that is seen as /dev/vda in the VM):

Of course it doesn't work with real servers but since you are on KVM it
may be of use to you.

Andreas

··· On 2012-06-14 23:16, Ryan Bourgeois wrote: > Looks like that fixed my issue. It's picking up the templates and > processing them. I've got my next problem, though. It gave me a "Cannot > find root partition" or something or another. So my partitioning is > wrong. I used the "Ubuntu custom LVM" partition snippet but changes sda > to vda since I'm on KVM. I'm trying the "Ubuntu default" template now to > see how it goes. > > Andreas, thanks for the templates.