Sandra, try "canonifying" the string hostname1.domain -> hostname1_domain
You can see the list of available classes on your machine by typing
cf-promises -v
Sandra Wittenbrock wrote:
> Hello,
>
> I am trying to define a custom class, containing a list of servers.
> When I attempt to use it, the computer I run from, (hostname1.domain,
> with ipaddress "relavantip") does not recognize it IS in the class, so
> the promises are not relevant. I'd appreciate being pointed in the
> right direction here.
>
> Relevant code snippets are below.
>
> Thanks,
>
> Sandra
>
> Here is where I define the class:
> -----------------
> bundle common g{
>
> # define classes
> classes:
> # Define sdm hosts
> "sdm_hosts" or => { "hostname1.domain", "ipv4_relavantip" },
> handle => "global_classes";
>
> }
> ----------------
> Here is where I am trying to use it:
> ---------------
>
> bundle agent site
> {
>
> vars:
>
> files:
>
> sdm_hosts::
>
> "/etc/sysctl.conf"
> create => "true",
> perms => usystem("0644");
>
> }
> -----------------------------------
> Here is what I get when I fun cf-agent:
> ----------------------------------
>
>
> Skipping whole next promise (/etc/sysctl.conf), as context sdm_hosts is
> not relevant
> cf3 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> cf3
> cf3 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> cf3 Skipping whole next promise (/etc/grid-security/.), as context
> sdm_hosts is not relevant
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine
--
Mark Burgess
-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway
Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine