Re: kiskstart question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Amos Shapira wrote:

> And how do you get kickstart to start puppet? Do you need to add stuff in
> %post or is it enough to just install the packages?

I don't use puppet, but use cfengine, they perform similar tasks.
I install the packages and base configuration for cfengine in %post
and then when the system boots it sync's up (I still perform manual
hostname and static IP addressing after the system boots, and cfengine
pushes the config to the system based on the host name).

%post
(

cat <<EOF;
###############################################################################
## CFEngine Install                                                          ##
###############################################################################
EOF

rpm -Uvh
http://kickstart.sea2.my.domain/updates/rhel_5_32/cfengine/cfengine-2.1.22-1.el5.i686.rpm
wget
http://kickstart.sea2.my.domain/kickstart/post-installs/common/cfengine/cfagent.conf
-O /var/cfengine/inputs/cfagent.conf
wget
http://kickstart.sea2.my.domain/kickstart/post-installs/common/cfengine/update.conf
-O /var/cfengine/inputs/update.conf
wget
http://kickstart.sea2.my.domain/kickstart/post-installs/common/cfengine/root-10.200.1.39.pub
-O /var/cfengine/ppkeys/root-10.200.1.39.pub
wget
http://kickstart.sea2.my.domain/kickstart/post-installs/common/cfengine/root-10.10.20.44.pub
-O /var/cfengine/ppkeys/root-10.10.20.44.pub
chown root.root /var/cfengine/inputs/cfagent.conf
/var/cfengine/inputs/update.conf /var/cfengine/ppkeys/*
chmod 664 /var/cfengine/inputs/cfagent.conf /var/cfengine/inputs/update.conf
/var/cfengine/ppkeys/*
[..]
(lots more %post stuff)
- setup network teaming
- disable grub splash screen
- disable IPv6
- clean up /etc/hosts (dhcp client pollutes it)
- setup auto email notification upon initial boot
- explicity turn on/off certain services
- update to latest internally tested kernel ("manually", not via yum)
- update to latest internally tested RPMs ("manually", not via yum)

My co-worker looked at puppet last year for a time and was
excited about it for a while but lost interest. Don't recall what
he didn't like I think just the thought of migrating existing
cfengine configs to puppet didn't make the migration worthwhile
to him. I hear it's the "future" though.

Once the system has a host name cfengine gives it a ton more
configuration.


nate

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux