Tags:
create new tag
view all tags
-- ColinLeavettBrown - 2013-06-13

All-In-One Puppet install of Ubuntu-13.04/OpenStack on mouse01.heprc.uvic.ca

%STARTCONSOLE% cd /tmp wget http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/releases/13.04/ubuntu-13.04-server-amd64.iso mount -o loop ubuntu-13.04-server-amd64.iso /mnt cobbler import --path=/mnt --name=ubuntu-13.04 --breed=ubuntu umount /mnt cd /var/www/cobbler/ks_mirror/ubuntu-13.04/install mv initrd.gz original_initrd.gz cp netboot/ubuntu-installer/amd64/initrd.gz original_netboot_initrd.gz gunzip -c original_netboot_initrd.gz > original_netboot_initrd mkdir tmp cd tmp cpio -i <../netboot_original_initrd cp ~crlb/OpenStack/ubuntu-13.04/preseed.cfg . cp -r ~crlb/OpenStack/ubuntu-13.04/InstallationFiles . find | cpio -o -H newc >../initrd cd .. gzip initrd cobbler system edit --name e1 --profile ubuntu-13.04-x86_64 --netboot true cobbler sync ipmitool -Ucrlb -H10.200.201.1 power cycle %ENDCONSOLE%

%STARTCONSOLE% ssh -p3121 mouse01.heprc.uvic.ca apt-get update apt-get -y upgrade %ENDCONSOLE%

%STARTCONSOLE% apt-get -y install puppet puppetmaster rake git %ENDCONSOLE%

  • Then following the "storeconfigs" link:

%STARTCONSOLE% apt-get -y install rails mysql-server libmysql-ruby mysql -u root -p create database puppet; grant all privileges on puppet.* to puppet@localhost identified by ' \q %ENDCONSOLE%

  • Configure the puppetmaster to use storeconfigs. Edit /etc/puppet/puppet.conf and add the following to the "[main]" section:

%STARTCONSOLE% storeconfigs = true dbadapter = mysql dbuser = puppet dbpassword = ********** dbserver = localhost dbsocket = /var/run/mysqld/mysqld.sock %ENDCONSOLE%

%STARTCONSOLE% cat > /etc/puppet/manifests/site.pp << EOT node default { notify { 'I can connect!': } } EOT %ENDCONSOLE%

  • And restart the puppetmaster:

%STARTCONSOLE% service puppetmaster restart %ENDCONSOLE%

  • Configure the puppet agent by adding the following to /etc/puppet/puppet.conf:

%STARTCONSOLE% [agent] pluginsync = true server = mouse01.heprc.uvic.ca %ENDCONSOLE%

  • Register the client with the puppetmaster:

%STARTCONSOLE% puppet agent -t --waitforcert 60 %ENDCONSOLE%

Previous installation attempts

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | More topic actions
Topic revision: r3 - 2013-06-26 - crlb
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback