Bug #6363
open
- Status changed from New to Assigned
- Assignee set to Adam Heinz
- Target version set to 1.8.1
- Assignee changed from Adam Heinz to Joseph Magen
Is this still a bug if the template is not designed for host group-based provisioning?
I assume we should generated a better error message?
Joseph Magen wrote:
Is this still a bug if the template is not designed for host group-based provisioning?
Yes, it's our template.
I assume we should generated a better error message?
Not really, just fix the template.
Dominic Cleal wrote:
Not really, just fix the template.
wont this add noise to the new template? for example, the following things will never work (maybe missed a couple):
Ohad Levy wrote:
Dominic Cleal wrote:
Not really, just fix the template.
wont this add noise to the new template? for example, the following things will never work (maybe missed a couple):
Indeed, what are you suggesting?
Dominic Cleal wrote:
Ohad Levy wrote:
Dominic Cleal wrote:
Not really, just fix the template.
wont this add noise to the new template? for example, the following things will never work (maybe missed a couple):
Indeed, what are you suggesting?
I see 3 options, which one do you prefer:
- add checks if hostgroup or host provisioning to every code/snppet (realms, tokens, foreman_url)
- add a new template type for hostgroup based provisioning
- break down to more snippets, so the option above is a bit less painful to maintain
any other option?
I prefer (1), plus (3) if that makes it easier. I don't think the changes required are too extensive.
- Target version changed from 1.8.1 to 1.8.0
- Target version changed from 1.8.0 to 1.7.5
- Status changed from Assigned to Ready For Testing
- Assignee changed from Joseph Magen to Stephen Benjamin
- Target version changed from 1.7.5 to 1.7.4
- Target version changed from 1.7.4 to 1.7.3
- Target version changed from 1.7.3 to 1.7.2
- Pull request https://github.com/theforeman/community-templates/pull/96 added
- Pull request deleted (
)
The solution in the above PR is to create a new helper called "host_provision" which will be true in non-hostgroup provisioning. As Ohad mentioned above, this takes care of the two issues - relams and tokens.
There is an additional issue in the puppet.conf snippet which calls `certname`, so I've got a check in there - for hostgroup-based provisioning, it'll replace it with $HOSTNAME, so if the hostname is set then we'll configure it correctly.
That seems to get things up and going for me.
Note these templates will only be compatible with 1.5 and 1.6.
- Bugzilla link deleted (
1098183)
The BZ link was wrong, it was a different one. But we definitely need to get this downstream. Stephen, are you aware of existing downstream BZ? If not, I will create/assign to one.
- Related to Feature #11628: Check templates when associating with hostgroup added
- Status changed from Ready For Testing to New
- Assignee deleted (
Stephen Benjamin)
- Target version deleted (
1.7.2)
- Pull request added
- Pull request deleted (
https://github.com/theforeman/community-templates/pull/96)
I don't think so, just #6861 had a bugzilla. I'd just let this whole thing die and tell HG provisioning users to write their own KS.
Also available in: Atom
PDF