Manage two same-name domains from one Foreman

Hi,
I would need to use a single Foreman installation to manage more instances
of the same pool of virtual machines.

Each machine pool (around 20 machines) represents an isolated test system,
where machines communicate with each other using fully qualified domain
names. But the DNS server is local, of course; and in the case of a single
pool the DNS can be the Foreman machine itself.

But when managing two identical pools, where machines can have identical
FQDNs, I cannot just use Foreman anymore: it will not be able to add
duplicate DNS records.

So, what possibilities do I have to achieve what I need?
I could add to each pool a machine which can act as DNS server for the
pool, but AFAICT Foreman allows for a single DNS Smart Proxy for each
domain, so I'm not able to use the same domain for machines served by
different DNS servers.

I would prefer to avoid the installation of a separate Foreman host,
because the whole purpose of using Foreman here was to have a single
management point.

Any suggestions?
I'd expect this to be a not-so-uncommon need…

Thank you very much.
Marco

Have you tried running with organizations (settings.yaml w/ :organizations_enabled: true)? I'd expect foreman to allow this situation in that mode in the latest release (or possibly latest nightly as this is an active area of development due to katello becoming first-class feature set).

Good luck!

··· ----- Original Message ----- > Hi, > I would need to use a single Foreman installation to manage more instances > of the same pool of virtual machines. > > Each machine pool (around 20 machines) represents an isolated test system, > where machines communicate with each other using fully qualified domain > names. But the DNS server is local, of course; and in the case of a single > pool the DNS can be the Foreman machine itself. > > But when managing two identical pools, where machines can have identical > FQDNs, I cannot just use Foreman anymore: it will not be able to add > duplicate DNS records. > > So, what possibilities do I have to achieve what I need? > I could add to each pool a machine which can act as DNS server for the > pool, but AFAICT Foreman allows for a single DNS Smart Proxy for each > domain, so I'm not able to use the same domain for machines served by > different DNS servers. > > I would prefer to avoid the installation of a separate Foreman host, > because the whole purpose of using Foreman here was to have a single > management point. > > Any suggestions? > I'd expect this to be a not-so-uncommon need... > > Thank you very much. > Marco > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. >

Thank you, that's one feature I didn't know about.
I had a look at my 1.5.0 installation but this version does not allow using
the same domain name twice with different settings in different
organizations.
Do you mean that maybe this feature has been added later?

Marco

··· Il giorno lunedì 16 giugno 2014 13:21:21 UTC+2, Tom McKay ha scritto:

But when managing two identical pools, where machines can have identical
FQDNs, I cannot just use Foreman anymore: it will not be able to add
duplicate DNS records.

Have you tried running with organizations (settings.yaml w/
:organizations_enabled: true)? I’d expect foreman to allow this situation
in that mode in the latest release

There's no such feature, domains and other resources have to be unique
within a single Foreman instance.

··· On 16/06/14 14:51, zerozerounouno@gmail.com wrote: > Il giorno lunedì 16 giugno 2014 13:21:21 UTC+2, Tom McKay ha scritto: > > > > But when managing two identical pools, where machines can have > identical > > FQDNs, I cannot just use Foreman anymore: it will not be able to add > > duplicate DNS records. > > Have you tried running with organizations (settings.yaml w/ > :organizations_enabled: true)? I'd expect foreman to allow this > situation in that mode in the latest release > > > Thank you, that's one feature I didn't know about. > I had a look at my 1.5.0 installation but this version does not allow > using the same domain name twice with different settings in different > organizations. > Do you mean that maybe this feature has been added later?


Dominic Cleal
Red Hat Engineering

>
>
>> > But when managing two identical pools, where machines can have
>> identical
>> > FQDNs, I cannot just use Foreman anymore: it will not be able to add
>> > duplicate DNS records.
>>
>> Have you tried running with organizations (settings.yaml w/
>> :organizations_enabled: true)? I'd expect foreman to allow this situation
>> in that mode in the latest release
>>
>
> Thank you, that's one feature I didn't know about.
> I had a look at my 1.5.0 installation but this version does not allow
> using the same domain name twice with different settings in different
> organizations.
> Do you mean that maybe this feature has been added later?
>

Can you elaborate whats not supported? an Org can have multiple domains
and a domain can have multiple orgs?

or do you mean, you want something like 'example.com' multiple times?

thanks,
Ohad

··· On Mon, Jun 16, 2014 at 4:51 PM, wrote: > Il giorno lunedì 16 giugno 2014 13:21:21 UTC+2, Tom McKay ha scritto:

Marco


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

This one, exactly.

I'd like to be able to create two (and more) hosts having the same FQDN
myhost.example.com, but located on different subnets.
Both subnets can be reached by the Foreman host, and each subnet would have
its own DNS server and smart proxy.
Only the domain would be the same, but each subnet would only be aware of
its own instance of the domain.

…but it now strikes me that this would be a problem for Puppet, the
Puppet master would be unable to receive different reports from the two
machines with the same name…

Thank you.
Marco

··· Il giorno lunedì 16 giugno 2014 15:52:46 UTC+2, ohad ha scritto:

or do you mean, you want something like ‘example.com’ multiple times?