Ask Your Question

Application Orchestration: Declaring application instances [site.pp]

asked 2017-10-24 09:44:58 -0600

rssh22 gravatar image

updated 2017-10-25 08:49:47 -0600

DarylW gravatar image


According to documentation in , application declaration must be done in main site.pp file.

There is a huge problem when an enrironment need to use hundreds of application declarations. There are too many declarations in a single file which is very hard to maintain.

It is possible to declare applications in other different file?

Kind regards,


edit retag flag offensive close merge delete



If `site.pp` is a directory, all its containing `*.pp` manifests are parsed in alphabetical order. Is that OK? .

Kai Burghardt gravatar imageKai Burghardt ( 2017-10-25 13:25:28 -0600 )edit

Yepa!! thats the point to the solution!! I'll write it as an answer.

rssh22 gravatar imagerssh22 ( 2017-10-27 03:33:50 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-10-27 03:37:29 -0600

rssh22 gravatar image

It is possible to write different site{} sections in different manifest files. Here explain how

What I did is to create a file called app.pp under main manifest directory and add the site{} section to it:

site {
 create_component_app('myapp', 'myapp1',
  { 'username'   => 'user1',
    'groupname'  => 'user1',
    'gid'        => '5000',
    'uid'        => '5000',
    'userhome'   => '/export/home/user1',
    'zfsvol'     => 'app/myapp1',
    'ensure'     => 'present',
    'components' => {
      'Myapp::Comp1' => ['jeer04-mw-pub-t01-n0', 'jeer04-mw-pub-t01-n1'],
      'Myapp::Comp2' => ['jeer04-mw-pub-t01-n0']
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-10-24 09:44:58 -0600

Seen: 48 times

Last updated: Oct 27 '17