Cookbook rsyslog does not contain file templates/50-default.conf.erb

I’m trying to use the rsyslog cookbook through the opscode platform
but it doesn’t seem to be downloading all of it’s templates. I’m
guessing the server determines what templates to send down by running
the recipes, however in this case the template directory is in a
conditional statement so it seems like it may be getting masked. If
this is the case how can I explicitly tell chef that this template
should be transfered even if the conditional may not succeed or how
can I make the conditional succeed on the server.

relevant code can be found at
https://github.com/opscode/cookbooks/blob/master/rsyslog/recipes/default.rb
line 52-60

Yo,

On 30 November 2010 10:57, Brian Finney bri@nfinney.com wrote:

I'm trying to use the rsyslog cookbook through the opscode platform
but it doesn't seem to be downloading all of it's templates. I'm
guessing the server determines what templates to send down by running
the recipes,

It does not. It is aware of the templates in the directory, though.

however in this case the template directory is in a

conditional statement so it seems like it may be getting masked. If
this is the case how can I explicitly tell chef that this template
should be transfered even if the conditional may not succeed or how
can I make the conditional succeed on the server.

Place the template in your 'cookbooks/rsyslog/templates/default/'
folder, and it will be available to all platforms. I believe that
particular template conditional stops a non-compatible rsyslog
template from being installed (on older than Jaunty Jackalope Ubuntu
systems)

http://wiki.opscode.com/display/chef/Files#Files-FileSpecificity

Regards,

AJ

relevant code can be found at
https://github.com/opscode/cookbooks/blob/master/rsyslog/recipes/default.rb
line 52-60

Gotcha, works much better now.

Thanks
Brian

On Mon, Nov 29, 2010 at 2:03 PM, AJ Christensen aj@junglist.gen.nz wrote:

Yo,

On 30 November 2010 10:57, Brian Finney bri@nfinney.com wrote:

I'm trying to use the rsyslog cookbook through the opscode platform
but it doesn't seem to be downloading all of it's templates. I'm
guessing the server determines what templates to send down by running
the recipes,

It does not. It is aware of the templates in the directory, though.

however in this case the template directory is in a

conditional statement so it seems like it may be getting masked. If
this is the case how can I explicitly tell chef that this template
should be transfered even if the conditional may not succeed or how
can I make the conditional succeed on the server.

Place the template in your 'cookbooks/rsyslog/templates/default/'
folder, and it will be available to all platforms. I believe that
particular template conditional stops a non-compatible rsyslog
template from being installed (on older than Jaunty Jackalope Ubuntu
systems)

http://wiki.opscode.com/display/chef/Files#Files-FileSpecificity

Regards,

AJ

relevant code can be found at
https://github.com/opscode/cookbooks/blob/master/rsyslog/recipes/default.rb
line 52-60

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

Are you using Ubuntu 10.10?

The cookbook has 10.04 and 9.10, but not 10.10 specific directories. Please open a ticket in the COOK project and we'll get a template 10.10 added.

tickets.opscode.com

Thanks!

On Nov 29, 2010, at 2:57 PM, Brian Finney wrote:

I'm trying to use the rsyslog cookbook through the opscode platform
but it doesn't seem to be downloading all of it's templates. I'm
guessing the server determines what templates to send down by running
the recipes, however in this case the template directory is in a
conditional statement so it seems like it may be getting masked. If
this is the case how can I explicitly tell chef that this template
should be transfered even if the conditional may not succeed or how
can I make the conditional succeed on the server.

relevant code can be found at
https://github.com/opscode/cookbooks/blob/master/rsyslog/recipes/default.rb
line 52-60


Opscode, Inc
Joshua Timberman, Technical Evangelist
IRC, Skype, Twitter, Github: jtimberman

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAkz0V4AACgkQO97WSdVpzT0cIwCfSIOWeRPup1FnO0jhnLPAFWRW
X9sAniOWrRibHSbHFEDOVxs4t6s5q+Yd
=YKV/
-----END PGP SIGNATURE-----

Yes I'm on 10.10, but I actually added the template myself and changed
the code to just automatically pull the right template according to
the os rather than requiring the cookbook to be modified.

Though I believe I remember something about the process for me to
submit those changes back you guys involves me getting the CEO/Lawyers
to sign something right?

On Mon, Nov 29, 2010 at 5:46 PM, Joshua Timberman joshua@opscode.com wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

Are you using Ubuntu 10.10?

The cookbook has 10.04 and 9.10, but not 10.10 specific directories. Please open a ticket in the COOK project and we'll get a template 10.10 added.

tickets.opscode.com

Thanks!

On Nov 29, 2010, at 2:57 PM, Brian Finney wrote:

I'm trying to use the rsyslog cookbook through the opscode platform
but it doesn't seem to be downloading all of it's templates. I'm
guessing the server determines what templates to send down by running
the recipes, however in this case the template directory is in a
conditional statement so it seems like it may be getting masked. If
this is the case how can I explicitly tell chef that this template
should be transfered even if the conditional may not succeed or how
can I make the conditional succeed on the server.

relevant code can be found at
https://github.com/opscode/cookbooks/blob/master/rsyslog/recipes/default.rb
line 52-60


Opscode, Inc
Joshua Timberman, Technical Evangelist
IRC, Skype, Twitter, Github: jtimberman

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAkz0V4AACgkQO97WSdVpzT0cIwCfSIOWeRPup1FnO0jhnLPAFWRW
X9sAniOWrRibHSbHFEDOVxs4t6s5q+Yd
=YKV/
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

On Nov 29, 2010, at 7:40 PM, Brian Finney wrote:

Yes I'm on 10.10, but I actually added the template myself and changed
the code to just automatically pull the right template according to
the os rather than requiring the cookbook to be modified.

The template can go in the 'ubuntu' directory in cookbooks/rsyslog/templates/ubuntu, e.g.

Though I believe I remember something about the process for me to
submit those changes back you guys involves me getting the CEO/Lawyers
to sign something right?

You are free to open a ticket pointing out the issue, that doesn't require signing anything.

However, if you want to contribute the change via a patch to the Opscode cookbooks repo, we need to have a contributor license agreement (CLA) on file. Whether that involves CEO/Lawyers depends on your company policies.

http://wiki.opscode.com/display/chef/How+to+Contribute


Opscode, Inc
Joshua Timberman, Technical Evangelist
IRC, Skype, Twitter, Github: jtimberman

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAkz0k68ACgkQO97WSdVpzT2PdgCfcqidjxPlQ3JXFbQCPnuVKJO6
7B0AoJmF8gPKJ0RVFfVWL0yw1lATbf8i
=x5gZ
-----END PGP SIGNATURE-----