- From: Cooper Simmons <
>
- To:
- Subject: [chef] platform agnostic roles and/or cookbooks
- Date: Sat, 12 May 2012 16:31:46 -0500
Hello all.
I would like to bootstrap a server with a base role and not care if it's rhel/centos or ubuntu/debian.
I'm experimenting and using a base role to run the cookbooks users, sudo, & ntpd.
But ubuntu also needs the apt cookbook to run 'apt-get update' first. My bootstrap for rhel/centos is failing because it can't run the apt cookbook.
Is there something in the yum & apt cookbooks (or any cookbook for that matter) that essentially says "only run this if you're platform X, else skip this cookbook"?
I'm fairly new and it seems like there should be a simple way to solve this.
- [chef] platform agnostic roles and/or cookbooks, Cooper Simmons, 05/12/2012
Archive powered by MHonArc 2.6.16.