[Labs-l] Question: Connecting variables in labsconsole to puppet
Ryan Lane
rlane32 at gmail.com
Tue Jan 15 18:30:15 UTC 2013
On Tue, Jan 15, 2013 at 9:25 AM, Silke Meyer <silke.meyer at wikimedia.de>wrote:
> 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",
>
database_name => $wikidata_database_name,
> ensure => present,
> }
> }
>
>
You'd then add wikidata_database_name as a variable in the puppet group
interface, then you'd set the variable via the configure interface in
manage instances.
- Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20130115/7b543cd1/attachment.html>
More information about the Labs-l
mailing list