installation de puppet et librarian-puppet
avec les dépôts par défaut
apt-get update
apt-get upgrade -y
lvcreate -L 512M -n puppet system
mkfs.ext4 /dev/mapper/system-puppet
apt-get install -y expect git
cd /etc
git clone https://db_freerider@bitbucket.org/dbouwyn/puppet.git
password is bitbucket_rocks
Cloning into 'puppet'...
Password for 'https://db_freerider@bitbucket.org':
remote: Counting objects: 5656, done.
remote: Compressing objects: 100% (2145/2145), done.
remote: Total 5656 (delta 3252), reused 5474 (delta 3084)
Receiving objects: 100% (5656/5656), 2.14 MiB | 315.00 KiB/s, done.
Resolving deltas: 100% (3252/3252), done.
Checking connectivity... done.
echo '/dev/mapper/system-puppet /etc/puppet ext4 rw,relatime,data=ordered 0 1' >>/etc/fstab
mount -a
mount
/dev/mapper/system-puppet on /etc/puppet type ext4 (rw,relatime,data=ordered)
apt-get install puppet
gem install librarian-puppet
cd /usr/tidy/etc/puppet && tar cf - . | tar xvf - -C /etc/puppet
cd /etc/puppet && mkdir hieradata
echo '/etc/puppet/hieradata /var/lib/hiera none bind,rw 0 2' >>/etc/fstab
mount -a
useradd -g 0 -u 495 -r -d /etc/puppet -s /bin/bash puppetadmin
echo 'puppetadmin ALL=(ALL) NOPASSWD: ALL' >/etc/sudoers.d/puppetadmin
cd /etc && chown -R puppetadmin puppet
cd /etc/puppet && ( ln -s scripts/tgit ; ln -s scripts/autocommit.sh )
echo 'bitbucket_rocks' >/etc/passwd_git
su - puppetadmin -c './tgit pull'
librarian-puppet update
It's now possible to run your puppet manisfest, and you're saying : but ... OMG ! I don't have any !
Real next step is to create your first manifest, using experience, bronco and palette as sample.
Before doing that, setup you environment.
puppet apply manifests/myexperience.pp
dimanche 24 avril 2016
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire