Re: [Puppet Users] how to pxe boot and preseed puppet-agent install in ubuntu from puppetlabs repo
Hi Peter, ever thought about trying Cobbler? In our environment, we PXE boot servers with Cobbler, install Xenial with a recent Puppet agent and automatically sign the certificate on the master for freshly deployed servers. Everything out of the box :) Hth, Tom. On Wed, 2017-03-22 at 13:06 -0700, Peter K wrote: > In my googling I did not find a simple recipe for how to install and > run puppet for the first time (for a pxe / tftpboot / ubuntu / > preseed / puppetlabs-repo scenario). > > Here's what I tagged onto the bottom on my preseed.cfg script: > > d-i preseed/late_command string in-target wget -O > /home//puppetlabs-release-pc1-xenial.deb http://apt.puppetl > abs.com/puppetlabs-release-pc1-xenial.deb;\ > in-target /usr/bin/dpkg -i /home//puppetlabs- > release-pc1-xenial.deb;\ > in-target /usr/bin/apt-get update;\ > in-target /usr/bin/apt-get install -y --allow-unauthenticated > puppet-agent; > #in-target /opt/puppetlabs/puppet/bin/puppet resource service > puppet ensure=running enable=true; # this line wan't necessary > because puppet joined the server and ran for the first time on first > boot with no other configuration...if you have autosigning set up. > > # This script assumes you have autosigning turned on by putting a > single asterisk in this file on the puppet server: > /etc/puppetlabs/puppet/autosign.conf > > Here's my pxelinux.cfg/default snipit (how the preseed.cfg is > called): > > LABEL ubuntu-16.04.2 server LTS with preseed > MENU LABEL ubuntu-16.04.2 server LTS with preseed > KERNEL images/ubuntu-16.04.2-server-amd64.iso/linux > APPEND initrd=images/ubuntu-16.04.2-server-amd64.iso/initrd.gz > inst.repo=ftp:///pub/ubuntu-16.04.2-server-amd64.iso > auto=true priority=critical debian-installer/locale=en_US keyboard- > configuration/layoutcode=us ubiquity/reboot=true > languagechooser/language-name=English countrychooser/shortlist=US > localechooser/supported-locales=en_US.UTF-8 boot=casper automatic- > ubiquity quiet splash noprompt noshell preseed/url=ftp:// address>/pub/kickstarter/preseed.cfg --- > > # and ftp:///pub/ubuntu-16.04.2-server-amd64.iso is a > mountpoint to the file of the same name. > # Make sure and change the and fields with > your own. > -- > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/puppet-users/7a874867-5ed5-4928-890d- > e9dbaec15b31%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Thomas "Duke" Hager d...@sigsegv.at GPG: 2048R/791C5EB1http://www.sigsegv.at/gpg/duke.gpg = "Never Underestimate the Power of Stupid People in Large Groups." -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1490303304.5028.1.camel%40sigsegv.at. For more options, visit https://groups.google.com/d/optout. signature.asc Description: This is a digitally signed message part
Re: [Puppet Users] Re: Puppet 4 under Ubuntu 16.04
On Mon, 2016-10-17 at 13:13 +0200, Ilia Ternovich wrote: > I would like to install puppet first and then manage my oracle jdk > installation with it. I don't need OpenJDK > Well, before managing anything with Puppet, you need a working puppetserver. And puppetserver has a dependency on OpenJDK, because it's the only JDK shipped with Xenial. So, install puppetserver with OpenJDK and write your manifest to install Oracle's JDK later (you can safely install OpenJDK and Oracle JDK in parallel on Ubuntu). But the question remains, why would you want to install Oracle JDK on the puppetserver? Puppetserver works fine with OpenJDK on Xenial, been running it for 3-4 months now without a glitch. Cheers, Tom. Thomas "Duke" Hager d...@sigsegv.at GPG: 2048R/791C5EB1http://www.sigsegv.at/gpg/duke.gpg = "Never Underestimate the Power of Stupid People in Large Groups." -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1476810616.12999.1.camel%40sigsegv.at. For more options, visit https://groups.google.com/d/optout. signature.asc Description: This is a digitally signed message part
Re: [Puppet Users] Question about yum provider of package resource ?
On 2014-12-05 08:50, Richard wrote: Hi! Hi, [...] but when i run command 'rpm -qa| grep mysql' , i find that mysql still in my system. mysql-connector-java-5.1.17-6.el6.noarch mysql-community-release-el6-5.noarch mysql-community-client-5.6.22-2.el6.x86_64 mysql-community-common-5.6.22-2.el6.x86_64 mysql-community-libs-5.6.22-2.el6.x86_64 The package resource you manage is mysql-server. On Redhat based systems, the package type uses yum to install packages, which takes care of resolving dependencies and automatically installs all packages the mysql-server package requires, like the libs or common packages. With ensure = absent, Puppet reomves the mysql-server package, which also happened in your case, as the mysql-server package is no longer installed. The packages you see are libraries and other tools installed as a dependency for mysql-server or other packages. [...] i want to know how to set yum provider or package attribute to make package using yum command to remove mysql not rpm command. You don't, because it wouldn't make any difference. Yum basically is nothing more than a front-end for rpm, which handles remote repositories and dependency resolving. Under the hood, yum uses rpm for installing and removing packages. Hth, Tom. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f3a2cd70b1e727c3a2f473badf2f1b2e%40sigsegv.at. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] install package through manifests
On 2014-12-02 03:11, fauzi.profit...@gmail.com wrote: thanks for the reply, is it will make puppet connection lost or something bad happen if we use yum update ? That's not really a Puppet question, but a question every sysadmin has to answer himself. Which updates are applied in your environment with yum update, which services and files are affected by the updates, and so on. You probably should not use yum or Puppet, if you don't know what effect those tools can have on your environment. Br, Tom. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9a5bf10d1864e6989284077aa1eb529a%40sigsegv.at. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] [newb] Using facts to control versions of modules?
On 2014-12-01 22:10, leam hall wrote: I've heard that the goal is to move away from a ~hieradata/{dev|test|prod} directory structure to use Facts. What I haven't seen is how to control module versions with that. If you update mymodule and put it in the ~puppet/modules directory, what makes dev boxes get the new one and prod get the old one? I'd say you're looking for directory environments: https://docs.puppetlabs.com/puppet/latest/reference/environments.html E.g., you could have modules for prod nodes in /etc/puppet/environments/production/modules, and modules for dev nodes in /etc/puppet/environments/development/modules. When you assign your nodes to one of the defined environments, they will load the respective modules. Hth, Tom. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b0b244d271c2a4f31c68d71afc12318e%40sigsegv.at. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] install package through manifests
On 2014-11-28 10:15, fauzi.profit...@gmail.com wrote: Hai everyone, can someone help me? Hi, I'm new in puppet, How can I install package at puppet agent through puppet master by using manifests. Sure, as long as the packages are supported by a provider. Take a look at the package provider reference for details: https://docs.puppetlabs.com/references/latest/type.html#package Then ,can we schedule the command from puppet master ? You can use puppet kick to trigger an agent run from the master in Puppet 3.x. puppet kick is deprecated and no longer supported in Puppet 4.x though. Hth, Tom. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1915783d2163a18b7ce2eabb7a12fd0a%40sigsegv.at. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Variable interpolation failing with structured facts
On 2014-11-05 15:53, jcbollinger wrote: Well no, Puppet IS interpolating. It is interpolating the string value of the whole hash. What it is not doing is interpreting the index as an index. Try this: notice(${os[family]}) I make it a general rule to _always_ use braces around variable references in quoted strings, even where not strictly necessary. It is harmless to do so, and it saves having to determine on a case by case basis whether braces are needed. Yes, of course, stupid me. Thanks for the heads up. I wrote the test manifest properly and now the result is as expected. Thx, Tom. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1df81fdbb775053f652272d7d9e41e27%40sigsegv.at. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Starting with puppet
On 2014-11-05 07:43, elhay efrat wrote: Can someone please share PPT or Youtube link how to start with puppet ? Puppetlabs offers an excellent tutorial for Puppet beginners: https://docs.puppetlabs.com/learning/ https://docs.puppetlabs.com/learning/introduction.html I'd start there. Hth, Tom. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/243935dc488ad376af9384f4b3cee63e%40sigsegv.at. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Variable interpolation failing with structured facts
Hi, While implementing custom facts in our environment I did some experimenting with structured facts in our Puppet manifests. Puppet is 3.7.2, Facter is 2.3.0, Master and Agent run on the same VM, future parser is on and stringify_facts is disabled. I failed at using one of my custom facts (an array of hashes) in Puppet manifests, so I did some tests with the os core fact and failed as well. To debug my manifest I added these two notice() calls notice($os[family]) notice($os[family]) and observed this output: : (Scope(Class[Dummy])) RedHat : (Scope(Class[Dummy])) {family = RedHat, name = CentOS, release = {major = 6, minor = 5, full = 6.5}}[family] This is kinda weird, it seems as if Puppet fails to interpolate structured facts in double-quoted strings, because both calls to notice() should output the same text, right? Or did I miss something? Cheers, Tom. -- Thomas Duke Hager d...@sigsegv.at GPG: 2048R/791C5EB1http://www.sigsegv.at/gpg/duke.gpg = Never Underestimate the Power of Stupid People in Large Groups. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e20649e4f5bb92aac7d99b366dd64548%40sigsegv.at. For more options, visit https://groups.google.com/d/optout.