Hello, not sure if its maintained or supported or Im reading obsolete code/docs
Im going withj that :
It runs pretty much out of the box , but Im facing a problem, reading from the github repo instructions it states :
Automatic Ansible groups
The inventory will provide a set of groups, by default prefixed by ‘foreman_’. If you want to customize this prefix, change the group_prefix option in /etc/ansible/foreman.ini. The rest of this guide will assume the default prefix of ‘foreman’
The problem here is that there are no groups created called foreman_${groupname} , so far I created 3 groups (host_groups) following the instructions via the web console :
- myclient
- PRO
- webserver
Every group has the following parametres :
myclient : {client: myclient}
PRO : {environment : PRO}
webserver : {functionality : webserver}
And I have my foreman.ini with that content for group_patterns :
[ansible]
group_patterns = ["{functionality}-{environment}-{client}",
“{functionality}-{environment}”,
“{client}”,
“{environment}”,
“{functionality}”]
The problem is that Im not sure how to implement that part :
Lets assume you have a host that is built using this nested hostgroup:
myapp / webtier / datacenter1
When I try to assign the host to he groups via the web console as hostname > edit > host > host_group only allows me to select one hostgroup (myclient PRO or webserver) but there is no option to select and make an assignment to the 3 groups