Hi Ryan and all!

This is still not working for my own files... Could anyone show me how
to do it in an example from the Wikidata puppet files?

I have a snippet like this. I added the role::wikidata-repo::labs to the
labsconsole interface. I would like to tell puppet in the labsconsole
interface that my database_name should be "blah".

So far, in my snippet this is hard-coded. What would a syntax look like
that reacts to the variable input field in the labsconsole web interface?

class role::wikidata-repo::labs {

        class { "wikidata::singlenode":
                install_repo => true,
                install_client => false,
                *database_name* => "repo",
                ensure => present,
        }
}


Thanks for your advice!
Silke
        



Am 13.01.2013 00:25, schrieb Ryan Lane:
> The "Manage puppet groups" interface lets you define what's available to
> use in "configure" action for instances in the "Manage instances" interface.
> 
> So, if you wanted to set "ircecho_infile", you should check if it's
> already available to be set in the configure interface. If not, you
> could go to the puppet group interface, add it as a variable, then it'll
> appear in the configure interface. At that point you can set the value,
> save, and when you run puppet locally it'll work.
> 
> - Ryan
> 
> 
> On Fri, Jan 11, 2013 at 5:47 AM, Silke Meyer <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Hi all!
> 
>     Thanks to Ryan for reparing the web interface! :) So now we can add
>     puppet classes and variables in there.
>     I still don't understand how to connect the variables in my web
>     interface with those in my puppet files (where they work fine). Can
>     anyone please explain this to me?
> 
>     Looking at other files with input fields for variables, I found
>     something like this:
> 
>     # This is a POSIX shell fragment
>     INFILE="<%= ircecho_infile %>"
> 
>     Is that what I need??? If so, how/where do I include it? In a template?
>     At the beginning of a role file? Elsewhere? If this is not what I need,
>     how would I do it?
> 
>     Thanks for any help!
>     Best,
>     Silke
> 
>     --
>     Silke Meyer
>     Systemadministratorin und Projektassistenz Wikidata
> 
>     Wikimedia Deutschland e.V. | Obentrautstr. 72 | 10963 Berlin
>     Tel. (030) 219 158 260
> 
>     http://wikimedia.de
> 
>     Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V.
>     Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
>     unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt
>     für Körperschaften I Berlin, Steuernummer 27/681/51985
>     <tel:27%2F681%2F51985>.
> 
>     _______________________________________________
>     Labs-l mailing list
>     [email protected] <mailto:[email protected]>
>     https://lists.wikimedia.org/mailman/listinfo/labs-l
> 
> 
> 
> 
> _______________________________________________
> Labs-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/labs-l
> 


-- 
Silke Meyer
Systemadministratorin und Projektassistenz Wikidata

Wikimedia Deutschland e.V. | Obentrautstr. 72 | 10963 Berlin
Tel. (030) 219 158 260

http://wikimedia.de

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V.
Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt
für Körperschaften I Berlin, Steuernummer 27/681/51985.

_______________________________________________
Labs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/labs-l

Reply via email to