Hi
I have a requirement from the oracle guys to add users to a list of oracle based groups. So I setup the following:
bundle agent config_oracle
{
vars:
linux.app_oracle.app_oracle_RoleSep::
"oracle_deps" slist => {"libXtst", "bc", "compat-libcap1", "xorg-x11-xauth", "xterm", "xorg-x11-fonts*", "kmod-oracleasm", "binutils", "compat-libstdc++-33", "elfutils-libelf", "gcc", "gcc-c++", "glibc", "glibc-common", "glibc-devel", "glibc-headers", "ksh", "libaio", "libaio-devel", "libgomp", "libgcc", "libstdc++", "libstdc++-devel", "make", "sysstat", "unixODBC", "unixODBC-devel", "numactl-devel"};
"skel" string => "/etc/skel";
packages:
linux.app_oracle.app_oracle_RoleSep::
"$(oracle_deps)"
package_policy => "add",
package_method => yum;
files:
linux.app_oracle.app_oracle_RoleSep::
"/etc/cron.allow"
create => "true",
edit_line => add_oracle_user;
users:
linux.app_oracle_RoleSep::
"oracle"
policy => "present",
uid => "201",
description => "Service Account - oracle User",
home_bundle => home_skel(oracle, $(skel)),
home_dir => "/home/oracle",
group_primary => "oinstall",
group_secondary => { "dba", "oper", "backupdba", "dgdba", "kmdba", "asmdba" },
shell => "/bin/bash";
}
bundle agent home_skel(user, skel)
{
files:
"/home/$(user)/."
create => "true",
copy_from => seed_cp($(skel)),
depth_search => recurse("inf");
}
I am running cf-promises -V
CFEngine Core 3.7.1
CFEngine Enterprise 3.7.1
and I get the following error:
/var/cfengine/inputs/env_dev/config_oracle.cf:66:24: error: Unknown attribute 'group_secondary' for promise type 'users' in bundle with type 'agent'
group_secondary => { "dba", "oper", "backupdba", "dgdba", "kmdba", "asmdba" },
^
error: There are syntax errors in policy files
THanks
Kobus