Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

RE: pass values to puppet-lvm

puppetd hanging on some nodes
(21 lines)
Newbie: Confused about where to start managing users...
(75 lines)
Feb 8, 2012
C R Ritson
C R Ritson
It's bound to be sub-optimal, but I too found puppet-lvm hard to get
started with. Firstly, I took a long time to discover that I needed to set
pluginsync to get the module copied to all hosts:-

  augeas { "puppet-pluginsync":
      context =>  "/files/etc/puppet/puppet.conf/main",
      changes => "set pluginsync true",
      # notify  => Service[puppet],
  }

In this, the notify is commented out. It shouldn't be, but until I can
upgrade to 2.7, I think I am being bitten by an old bug which prevents the
daemon being restarted. I couldn't make parameterisation work.

Secondly, like another poster, my initial host setup creates system volumes
with kickstart. I use puppet to add subsequent data volumes which may be
required for a specific project. I have given up trying to parameterise
this, so it is less than flexible. One example, for a project-specific
equivalent of /tmp is split into two parts:-

class lvm_a3 {
        import "puppet-lvm"

        physical_volume { "/dev/sda3" :
                ensure => present,
        }

        volume_group { "vga" :
                ensure => present,
                physical_volumes => "/dev/sda3",
        }

        Physical_volume["/dev/sda3"] -> Volume_Group["vga"]

}

class lvm_gypsy {

        Volume_group["vga"]             -> Logical_volume["gypsy"]
        Logical_volume["gypsy"]         -> Filesystem["/dev/vga/gypsy"]
        Filesystem["/dev/vga/gypsy"]    -> Mount["/export/space/gypsy"]
        File["/export"]                 -> File["/export/space"]
        File["/export/space"]           -> File["/export/space/gypsy"]
        File["/export/space/gypsy"]     -> Mount["/export/space/gypsy"]
        Mount["/export/space/gypsy"]    ->
File["/export/space/gypsy/tmp"]

        logical_volume { "gypsy" :
                ensure => present,
                volume_group => "vga",
                size => "50G",
        }

        filesystem { "/dev/vga/gypsy" :
                ensure => present,
                fs_type => "ext3",
        }

        file { "/export" :
                ensure => directory,
                mode => "644",
        }

        file { "/export/space" :
                ensure => directory,
                mode => "644",
        }

        file { "/export/space/gypsy" :
                ensure => directory,
                mode => "611",
        }

        mount { "/export/space/gypsy" :
                atboot => true,
                device => "/dev/vga/gypsy",
                ensure => mounted,
                fstype => "ext3",
                options => "defaults,nofail",
                name => "/export/space/gypsy",
                dump => "0",
                pass => "1",
        }

        file { "/export/space/gypsy/tmp" :
                ensure => directory,
                owner => "root",
                mode => "1777",
        }

        tidy { "/export/space/gypsy/tmp":
                age => "36h",
                recurse => inf,
                type => mtime,
        }

        import "puppet-lvm"
}

These two classes are one-per-file. You will see that the second one goes
on to tidy up stale scratch files...

Chris Ritson (Computing Officer and School Safety Officer)

Room 707, Claremont Tower,        EMAIL: C.R.R### @ncl.ac.uk
School of Computing Science,      PHONE: +44 191 222 8175
Newcastle University,             FAX  : +44 191 222 8232
Newcastle upon Tyne, UK NE1 7RU.  WEB  : http://www.cs.ncl.ac.uk/






Reply
Tags: puppetfirstlyhostslong time
pass values to puppet-lvm
January 17, 2012 08:57:39 AM
i would like to use the module puppet-lvm and would like to pass values to it. I have it setup properly as a module but I can't for the lfe of me get it to take any values that I put in my baseconfig.pp in my home folder. like shouldn't something…
how to pass values to a store function?
November 15, 2011 09:47:17 AM
hello, is it possible to pass values to a store (or load) function? e.g. %declare JOBID 'JOB-2011-11-15-001'; STORE metrics INTO 'metrics' USING com.innovation.serp.pig.lily.LilySearchMetricsStorer($JOBID); executing this gives…
How do I pass date values during data population
December 31, 2010 07:35:28 AM
The mongo shell accepts date values as new Date(2008, 10, 10), but trying to do the same via JSON and importing the data via mongoimport fails with a JSON parsing error. What would be the right syntax to use and we don't want to use the long…
Nested Select: how to pass map values around together with column value ?
October 26, 2010 06:38:54 AM
Following the documentation I can easily pass a column value from one select to another. But how can I pass parameters knows in the previous select ? To explain what I mean, here is a simple example: <select id=”selectBlog”…
pass host,port values from ant to jmeter test
July 9, 2010 04:44:51 AM
Hi All, I have a requirement to pass the host and port values (in user defined variables) dynamically from ant. Is this possible with $__P()}? Can somebody please give me suggestions. Thanks in advance,
How to pass variables from got from kickstart to puppet
May 19, 2011 02:30:47 PM
We are trying to make puppet to do the some of the kickstart part for CentOS installation. The kickstart will prompt for hostname, IP, etc, then install the puppet client to the client. From then on, puppet would take over. My question is, how can…
Puppet node fails to pass facts to master
October 18, 2011 11:50:04 AM
Hello Puppet list, I am taking over the puppet configuration of a sysadmin who left, and am having troubles deploying puppet to a new node. We are using puppet v2.7.3 both on the client and the puppetmaster, on Ubuntu 10.10. The node asks for a…
PATCH/puppet 1/1] (#4884) Modify tests to pass on non-OS X systems
March 18, 2011 12:42:30 PM
Fixed problems with the spec tests for the new exec type and providers that were causing failures on non-OS X systems. This involved rearranging some of the tests and their describe blocks, which makes the diff look more dramatic than it really is.…
(puppetlabs/puppet-acceptance) Allow ValidateSignCert to pass in a single-node setup
January 25, 2012 09:47:06 AM
On Wed Jan 25 15:38:58 UTC 2012 pull request #122 was closed. Allow ValidateSignCert to pass in a single-node setup [Link: https://github.com/puppetlabs/puppet-acceptance/pull/122 ] requested by (cprice-puppet) The pull request was…
PATCH/puppet 1/1] (#7469) Add license to test face so tests pass
May 12, 2011 05:46:26 PM
The TestIndirection test face defined in indirection_base_spec did not have copyright or license information defined; this was causing order-dependent test failures when unit tests were run before other specs (as in rake spec). This commit adds…
PATCH/puppet 1/4] (#8663) Reenable spec tests on Windows that now pass
July 27, 2011 06:04:33 PM
The cacher was causing spec tests to fail due to Time.now not having millisecond resolution on Windows. Now that usage of the cacher has been removed from many places, these tests now pass. Reviewed-by: Jacob Helwig <ja### @puppetlabs.com>…
(puppetlabs/puppet-acceptance) Allow ValidateSignCert to pass in a single-node setup
January 24, 2012 02:32:05 PM
Please review pull request #122:Allow ValidateSignCert to pass in a single-node setup [Link: https://github.com/puppetlabs/puppet-acceptance/pull/122 ] opened by (cprice-puppet) Description: In the case where you are running acceptance…
PATCH/puppet-dashboard 3/4] (#5866) Split dividing diff into pass and fail into a method
January 19, 2011 05:08:13 PM
I'm going to want to reuse this logic later so that I can quickly determine if a report has any differences. Reviewed-by: Nick Lewis Signed-off-by: Matt Robinson <mat### @puppetlabs.com> --- Local-branch: ticket/next/5866 …
PATCH/puppet 3/3] conf/redhat: Consistently pass pidfile option to daemon, killproc, and status
July 13, 2010 12:58:59 PM
In Red Hat bug #531116 Ruben Kerkhof noted that we weren't using the --pidfile $pidfile option to daemon. This caused 'service puppet start' to fail if puppet had already been started. To be consistent, we now pass the pidfile option to daemon,…
(puppetlabs/hiera-puppet) (#12037) hiera-puppet should support hash values.
January 25, 2012 05:16:56 PM
On Wed Jan 25 23:13:51 UTC 2012 pull request #18 was closed. (#12037) hiera-puppet should support hash values. [Link: https://github.com/puppetlabs/hiera-puppet/pull/18 ] requested by (nanliu) The pull request was merged by:…
(puppetlabs/hiera-puppet) (#12037) hiera-puppet should support hash values.
January 21, 2012 03:16:47 PM
Please review pull request #18:(#12037) hiera-puppet should support hash values. [Link: https://github.com/puppetlabs/hiera-puppet/pull/18 ] opened by (nanliu) Description: Puppet support hashes, so hiera-puppet backend should also…
(puppetlabs/puppet-acceptance) Closed pull request: (maint) Adding support to pass sshkey and cloud
September 14, 2011 08:01:26 PM
Greetings! On Thu Sep 15 00:54:54 UTC 2011 pull request #15 was closed. (maint) Adding support to pass sshkey and cloud ID as arg [Link: https://github.com/puppetlabs/puppet-acceptance/pull/15 ] requested by (djm68) The pull request…
(puppetlabs/hiera-puppet) New pull request: Pass scope to the Hiera constructor
January 5, 2012 02:16:34 PM
Please review pull request #15:Pass scope to the Hiera constructor [Link: https://github.com/puppetlabs/hiera-puppet/pull/15 ] opened by (hunner) Description: Before this commit, if the Hiera constructor accepted scope as per the…
Re: Issue 876 in cherokee: Preserve all HTTP headers to pass to http proxy pass application
April 23, 2011 04:17:03 PM
Updates: Status: Verified Comment #7 on issue 876 by alobbs: Preserve all HTTP headers to pass to http proxy pass application http://code.google.com/p/cherokee/issues/detail?id=876 (No comment was entered for this change.)
Puppet and augeas - onlyif conditions; overwriting default values
December 29, 2010 02:08:16 AM
Hello, I am still not getting warm with augeas and puppet, there are some things I do not understand. At the moment I am trying the following: - I want to set some kernel parameters in the /etc/sysctl.conf file - in one puppet module, I have…
How can i pass multiple radio button values to MYSQL Database via PHP as all individual values but keeping them segregated into groups?
February 15, 2011
I have a long questionnaire (46 questions) with each having (3) possible answers, yes, sometimes, and no, (3 radio buttons) each of which have a…
How to pass values from a php script to another dynamically???
January 17, 2011
Hello, i want to pass a url value from a php script to another.I have a database in which i have stored some feeds.I have given some weight values…
How to pass two paramter values to couchdb views?
April 21, 2011
Hi I am new to couchdb. I want to reproduce this sql in couchdb views. SELECT name,department FROM Persons where id = ? and group_id = ? ; How to I…
TSQL - Count specific values within Multistatement table UDF and pass them to additional column.
May 1, 2011
Hello, during coding my project I have encountered an obstacle and cannot go through with this issue... here is what I would like to achieve, I have…
Automatically change pass-by-value to pass-by-reference
April 25, 2011
I have many hundreds of functions from a manual java to c++ port. In the result c++ code, I wish to change parameters passed by value to passed by…
Is there any way to use arrays in a puppet module (not in template)?
May 10, 2010
I want to use puppet to manage a hadoop cluster. On the machines we have several directories which must be created and set permissions. But i'm…
Puppet + Passenger + Apache/Nginx
June 22, 2011
I'm working on a very large puppet deployment, but seem to be hitting a brick wall. My ideal setup is to use Nginx + Passenger to serve puppet. The…
How can I configure exim4 with a smarthost via puppet?
March 26, 2011
I have tried to automate the exim setup via puppet. I followed the approach described here , whiched worked for me for a few packages, but for exim…
Templating MySQL's my.cnf for setup in Puppet
February 18, 2011
I have been tasked with templating MySQL's my.cnf in an attempt standardize the configuration amongst the slave databases using Puppet. Right now,…
Puppet offloading using NGINX, 403 forbidden error
May 21, 2011
I'm currently trying to offload some of the file serving puppet does using NGINX (As displayed here…
Puppet defined resource - selective parameterization?
May 6, 2011
Hi all, I'm currently banging my head trying to find the "best way" to achieve this type of granularity for puppet: I have a server running…
Mysql md5(md5('pass') + salt) not equal php md5(md5('pass').salt)
May 9, 2011
MySql query: select md5(md5('pass') + '123') from foo gives c8ffe9a587b126f152ed3d89a146b445 while php md5(md5('pass').'123') gives…
How do i convert a array of values returned from a query to comma seperated values
June 7, 2011
I have a result set that is being returned using this code: while ($row = mysql_fetch_array( $result )) { echo "ID ".$row['v2id']; } this returns ID…
Python using iteration to create a single row of values vs many rows of values from CouchDB
March 22, 2011
I have some code that iterates through 'Documents' in couchDB for docid in db: test = db.get(docid) try: type = test['type'] except: type =…
Find rows having min and max range values that covers the selected millions of values
April 13, 2011
I have a table with symbol names (e.g. functions) and their start memory address and end memory address placement. Now I want to look up many…
Why my validation does not pass
April 5, 2011
I am developing Rails 3 app. I would like to validate the " Cake " model's " size " attribute input field to only allow user to input +1,-1,+10,-10…
How to pass slash / in an URL?
May 18, 2011
On this page there are many abbreviation / acronym entries: http://abbreviations.wordcrow.com/acronyms/D/ They are generated in PHP: <a…
PHP / MySQL - Create array of distinct values, query db table for data associated with those values, and loop for each
January 25, 2011
I'm not much of a PHP programmer, so I hope someone can help me with this. What I'm trying to do is get the distinct values from the competitor…
MySQL query, Most recent values from a historical table of values
April 13, 2011
Hello I have a table with historical values. Every time one of the value is updated a copy of that value is added to this table indexed by…
Shopping cart in session how to set values, and remove values? PHP, MySQL
May 18, 2011
hi all sorry am new in web development i made a website my site but it is almost done but i couldn't find how to make a shopping-cart i figured out…