Ok i did some reading and watched a youtube clip on it also.
Heira can be set in the params manifest which is what ll do - quite
dangerous that ill be using this approach at a company i work for :-)
Next i have established my hierarachy as such :
hierarchy: - %{_domain}/%{_environment}/%{_cluster}/%{_class}
%{_domain}/%{_environment}/%{_cluster}
%{_domain}/%{_environment}
%{_domain}
: yaml:
:datadir: /etc/puppet/hierdatadb
So the filesystem looks like this:
/etc/puppet/hierdatadb/ri3k.com/preprod/uk1/web.yaml
/etc/puppet/hierdatadb/ri3k.com/preprod/uk1.yaml
/etc/puppet/hierdatadb/ri3k.com/preprod.yaml
because im using a nodeless approach ill have to create a factor
plugin that will read the following values
/etc/system_facts
role:apache
_domain:ri3k.com
_cluster:dc1
_environment:systest
_class:web
ill have to figure out better fact names but i hope im making sence
here. The factor pluging and files will be setup at deployment time -
and puppet can then be run manually which will use the values to set
the host and define its role
Can anyone suggest a better way of doing this ?
On Mar 2, 1:15 pm, Daysmen <[email protected]> wrote:
> Hi Folks
>
> To begin with i am looking to deploy a completely new puppet config
> based on the truth
> modulehttps://github.com/jordansissel/puppet-examples/tree/master/nodeless-...
>
> However i want a way of separating data from modules based on this
> hierarchy:
>
> domain - ie blogs.com => common data distributed to all nodes/devices
> cluster ie. DC1 => ip address changes for services like ntp, resolver
> etc
> environment/zone - ie UAT => data and modules common to this
> environment
> server class ie web => include a role for apache, jboss, etc
>
> Is it possible to structure hiera to use this hierarchy ?
>
> Anybody have any ideas - remember i wont be using node resources but
> truth statements
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.