Hello,
i googeled so much, but can't find the answer, so hopefully somebody can
tell me, if it is possible to install foreman smart proxy via foreman
puppets. My problem: I provisioned a new ubuntu host via foreman (bootdisk)
in another subnet. Now i would like to install foreman-proxy on this host,
but not via apt. I found foreman-proxy on puppetlabs, i downloaded and
installed it on the foreman server. I deployed the foreman_proxy class on
the target machine, after that I get an error in the reports:
"
Could not retrieve catalog from remote server: Error 500 on SERVER:
{"message":"Server Error: Evaluation Error: Error while evaluating a
Resource Statement, Evaluation Error: Error while evaluating a Function
Call, Permission denied -
/opt/puppetlabs/puppet/cache/foreman_cache_data/oauth_consumer_key
"
So my question, is it possible to install/configure foreman-proxy via
foreman/puppet at all? Sorry, I'm total newbie in foreman, and I don't have
a clue, if I configured something wrong (or didn't configured something),
or if it is absolutely not possible to do this via foreman.
If it is not possible, and I can only install the proxy via apt, is there
somewhere a step by step how to? Installation is no problem, but in the
tutorials that I found there are only "configure it for your needs". And
this is not too much information, about the config… ![:slight_smile: :slight_smile:](https://community.theforeman.org/images/emoji/twitter/slight_smile.png?v=5)
Thank you!
> Hello,
>
> i googeled so much, but can't find the answer, so hopefully somebody can
> tell me, if it is possible to install foreman smart proxy via foreman
> puppets. My problem: I provisioned a new ubuntu host via foreman
> (bootdisk) in another subnet. Now i would like to install foreman-proxy
> on this host, but not via apt. I found foreman-proxy on puppetlabs, i
> downloaded and installed it on the foreman server. I deployed the
> foreman_proxy class on the target machine, after that I get an error in
> the reports:
>
> "
> Could not retrieve catalog from remote server: Error 500 on SERVER:
> {"message":"Server Error: Evaluation Error: Error while evaluating a
> Resource Statement, Evaluation Error: Error while evaluating a Function
> Call, Permission denied -
> /opt/puppetlabs/puppet/cache/foreman_cache_data/oauth_consumer_key
> "
This is a permissions issue, try running a "chown -R puppet
/opt/puppetlabs/puppet/cache/foreman_cache_data" to reclaim the
directory. Later versions of Puppet Server and Foreman should fix this
by separating the cachedir between apply/master mode.
> So my question, is it possible to install/configure foreman-proxy via
> foreman/puppet at all? Sorry, I'm total newbie in foreman, and I don't
> have a clue, if I configured something wrong (or didn't configured
> something), or if it is absolutely not possible to do this via foreman.
> If it is not possible, and I can only install the proxy via apt, is
> there somewhere a step by step how to? Installation is no problem, but
> in the tutorials that I found there are only "configure it for your
> needs". And this is not too much information, about the config… ![:slight_smile: :slight_smile:](https://community.theforeman.org/images/emoji/twitter/slight_smile.png?v=5)
Have you checked the manual? It has a whole section on installation and
configuration - but you do need to know what modules you need it for to
know what to configure (e.g. Puppet, TFTP).
https://theforeman.org/manuals/1.12/index.html#4.3SmartProxies
···
On 22/08/16 18:51, bardos.matyas@gmail.com wrote:
–
Dominic Cleal
dominic@cleal.org
Hello,
thank you, after chown, everything is working fine!
- augusztus 23., kedd 9:11:19 UTC+2 időpontban Dominic Cleal a
következőt írta:
···
>
> On 22/08/16 18:51, bardos...@gmail.com wrote:
> > Hello,
> >
> > i googeled so much, but can't find the answer, so hopefully somebody can
> > tell me, if it is possible to install foreman smart proxy via foreman
> > puppets. My problem: I provisioned a new ubuntu host via foreman
> > (bootdisk) in another subnet. Now i would like to install foreman-proxy
> > on this host, but not via apt. I found foreman-proxy on puppetlabs, i
> > downloaded and installed it on the foreman server. I deployed the
> > foreman_proxy class on the target machine, after that I get an error in
> > the reports:
> >
> > "
> > Could not retrieve catalog from remote server: Error 500 on SERVER:
> > {"message":"Server Error: Evaluation Error: Error while evaluating a
> > Resource Statement, Evaluation Error: Error while evaluating a Function
> > Call, Permission denied -
> > /opt/puppetlabs/puppet/cache/foreman_cache_data/oauth_consumer_key
> > "
>
> This is a permissions issue, try running a "chown -R puppet
> /opt/puppetlabs/puppet/cache/foreman_cache_data" to reclaim the
> directory. Later versions of Puppet Server and Foreman should fix this
> by separating the cachedir between apply/master mode.
>
> > So my question, is it possible to install/configure foreman-proxy via
> > foreman/puppet at all? Sorry, I'm total newbie in foreman, and I don't
> > have a clue, if I configured something wrong (or didn't configured
> > something), or if it is absolutely not possible to do this via foreman.
> > If it is not possible, and I can only install the proxy via apt, is
> > there somewhere a step by step how to? Installation is no problem, but
> > in the tutorials that I found there are only "configure it for your
> > needs". And this is not too much information, about the config... :)
>
> Have you checked the manual? It has a whole section on installation and
> configuration - but you do need to know what modules you need it for to
> know what to configure (e.g. Puppet, TFTP).
>
> https://theforeman.org/manuals/1.12/index.html#4.3SmartProxies
>
> --
> Dominic Cleal
> dom...@cleal.org
>