Hello All,

I am trying to create a bunch of apache .conf files by reading data from a database. My script returns a list of values from the database in YAML form:

---
classes:
  - apache
  - dummy
parameters:
  domains: 'domains1,domains2,domains3'
  puppet_server: dist
  users: 'user1, user2'


and I'd like to pass the domains and users arrays to a definition:

  define vhostvirt() {
    file { "/tmp/${wpdomain}":
     #content => template("apache/vhost.conf.erb"),
     owner => 'root',
     group => 'root',
     mode => '777',
     ensure => present,
    }
  }

to create the domain.conf files for me. Unfortunately, I cannot figure out the correct syntax and aprroach to solving this problem.

Could somebody help please ?

Thanks!


Stoyan

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to