Smartproxy without katello!

Foreman and Proxy versions:

Can we create/use smartproxies without katello sever?.

Other relevant data:

Probably, but you really provide no information at all about what you want to achieve so it’s hard to tell.

Hi,

As i have deployed foreman with REX/ansible/openscap, with extension to that i want to create proxies for REX/ansible/openscap options.

As i told, we have foreman server without Katelllo scenario and we want to deploy smartproxy without katello content components.

[root@foreman ~]# foreman-proxy-certs-generate --foreman-proxy-fqdn “testproxy.xyz.com” --certs-tar “~/testproxy.xyz.com-certs.tar”
/opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1291:in initialize' /opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1291:in open’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1291:in copy_file' /opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:432:in copy_file’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:359:in block in cp' /opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1463:in block in fu_each_src_dest’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1479:in fu_each_src_dest0' /opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1461:in fu_each_src_dest’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:358:in cp' /usr/share/foreman-installer/modules/certs/lib/puppet/provider/ca/katello_ssl_tool.rb:11:in generate!’
/usr/share/foreman-installer/modules/certs/lib/puppet/provider/katello_ssl_tool.rb:17:in create' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/ensure.rb:16:in block in defaultvalues’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:490:in set' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:570:in sync’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:241:in sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:136:in sync_if_needed’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:82:in perform_changes' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in evaluate’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:267:in apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:287:in eval_resource’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:191:in call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:191:in block (2 levels) in evaluate’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:521:in block in thinmark' /opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in realtime’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:520:in thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:191:in block in evaluate’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:122:in traverse' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:178:in evaluate’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:240:in block (2 levels) in apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:521:in block in thinmark’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:520:in thinmark’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:239:in block in apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:161:in with_destination’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:146:in as_logging_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:238:in apply’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:185:in block (2 levels) in apply_catalog' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:521:in block in thinmark’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:520:in thinmark’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:184:in block in apply_catalog' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:233:in block in benchmark’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:232:in benchmark’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:183:in apply_catalog' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:391:in run_internal’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:227:in block in run' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in override’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:314:in override' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:210:in run’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:343:in apply_catalog' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:260:in block (2 levels) in main’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in override' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:314:in override’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:243:in block in main' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in override’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:314:in override' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:207:in main’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:177:in run_command' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:in block in run’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:710:in exit_on_fail' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:in run’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:143:in run' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:77:in execute’
/opt/puppetlabs/puppet/bin/puppet:5:in <main>' /opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1291:in initialize’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1291:in open' /opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1291:in copy_file’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:432:in copy_file' /opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:359:in block in cp’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1463:in block in fu_each_src_dest' /opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1479:in fu_each_src_dest0’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1461:in fu_each_src_dest' /opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:358:in cp’
/usr/share/foreman-installer/modules/certs/lib/puppet/provider/ca/katello_ssl_tool.rb:11:in generate!' /usr/share/foreman-installer/modules/certs/lib/puppet/provider/katello_ssl_tool.rb:17:in create’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/ensure.rb:16:in block in defaultvalues' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:490:in set’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:570:in sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:241:in sync’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:136:in sync_if_needed' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:82:in perform_changes’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:267:in apply’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:287:in eval_resource' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:191:in call’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:191:in block (2 levels) in evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:521:in block in thinmark’
/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:520:in thinmark’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:191:in block in evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:122:in traverse’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:178:in evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:240:in block (2 levels) in apply’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:521:in block in thinmark' /opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in realtime’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:520:in thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:239:in block in apply’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:161:in with_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:146:in as_logging_destination’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:238:in apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:185:in block (2 levels) in apply_catalog’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:521:in block in thinmark' /opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in realtime’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:520:in thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:184:in block in apply_catalog’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:233:in block in benchmark' /opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in realtime’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:232:in benchmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:183:in apply_catalog’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:391:in run_internal' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:227:in block in run’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in override' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:314:in override’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:210:in run' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:343:in apply_catalog’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:260:in block (2 levels) in main' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in override’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:314:in override' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:243:in block in main’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in override' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:314:in override’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:207:in main' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:177:in run_command’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:in block in run' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:710:in exit_on_fail’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:in run' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:143:in run’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:77:in execute' /opt/puppetlabs/puppet/bin/puppet:5:in ’
Wrapped exception:
No such file or directory @ rb_sysopen - /etc/pki/katello-certs-tools/certs/katello-default-ca.crt
/opt/puppetlabs/puppet/lib/ruby/2.5.0/fileutils.rb:1291:in `initialize’

please help me with right approach to create smartproxy without katello components.

It looks like you are trying to install a non-Katello Smartproxy via way from the Katello documentation.
As a general hint: If you are not using Katello, the documentation from Katello is usually not what you are looking for.

From the Foreman manual (this is for 2.0):
Here is where some common use cases on how to use the installer (including smart proxy deployment) are documented.
Here you can find general information about setting up and configuring a smart proxy.

Documentation on how to set up the smart proxy for plugin features (like the features you mentioned) can usually be found in the corresponding Plugin’s manual.

1 Like

Thanks for the info and able to build the proxy with the help of those reference docs.