Hello everyone,
I want to know how you are managing post install cleanups after any binary install. In my environment, we are managing java install and configuration of it using puppet. After the latest JDK install, I have 4 old versions of it which we are not going to use anymore. Is there a way to delete those using puppet ?
↧
post cleanup after install
↧
is directory manifest supported for puppet 3.6.2 or it's supported for any higher versions
is directory manifest supported for puppet 3.6.2 or it's supported for any higher versions.
i have directory manifest setup without site.pp file in /etc/puppet/manifests directory but it does not seem to work.
it's as below.
Now when i call puppet agent , nothing seems to happen
ll /etc/puppet/manifests
total 60
-rw-r--r-- 1 root root 335 Feb 26 03:39 0_stages.pp
-rw-r--r-- 1 root root 218 Feb 26 03:39 1_images.pp
-rw-r--r-- 1 root root 6417 Feb 26 03:39 2_gnr.pp
-rw-r--r-- 1 root root 926 Feb 26 03:39 3_iugo.pp
-rw-r--r-- 1 root root 903 Feb 26 03:39 4_puppet.pp
-rw-r--r-- 1 root root 336 Feb 26 03:39 5_generic_server.pp
-rw-r--r-- 1 root root 14865 Feb 26 03:39 7_aws.pp
↧
↧
puppet fails when using hiera lookup on package installation
Hey guys. Pretty new to puppet and am having issues with a hiera lookup specifically when installing packages. I believe puppet thinks that the package resource is missing a title - it just has a variable as a title instead of the package name.
[root@canary production]# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Missing title. The title expression resulted in undef at /etc/puppetlabs/code/environments/production/site/profiles/manifests/common/packages.pp:5:11 on node canary.esxi.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
If I run puppet apply packages.pp (changing it from a class to a normal manifest) it runs fine.
[root@puppet02 common]# vim /etc/puppetlabs/code/environments/production/site/profiles/manifests/common/packages.pp
$packages = lookup('packages::installed')
#class profiles::common::packages {
package { $packages:
ensure => installed,
}
#}
As you can see "nmap" is now installed.
[root@puppet02 common]# puppet apply packages.pp
Notice: Compiled catalog for puppet02.esxi in environment production in 0.08 seconds
Notice: /Stage[main]/Main/Package[nmap]/ensure: created
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install wget'' returned 1: Error: Nothing to do
Error: /Stage[main]/Main/Package[wget']/ensure: change from purged to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install wget'' returned 1: Error: Nothing to do
Notice: Applied catalog in 8.81 seconds
common.yaml (where the packages are listed):
[root@puppet02 common]# vim /etc/puppetlabs/code/environments/production/hieradata/common.yaml
packages::installed:
- bash-completion
- vim
- nfs-utils
- iotop
- ntp
- epel-release
- deltarpm
- mlocate
- nmap
- tcpdump
- nethogs
- sysstat
- wget'
- git
- yum-utils
- bind-utils
- net-tools
- yum-cron
I'm able to look up the "packages:installed"
[root@puppet02 common]# puppet lookup packages::installed
---
- bash-completion
- vim
- nfs-utils
- iotop
- ntp
- epel-release
- deltarpm
- mlocate
- nmap
- tcpdump
- nethogs
- sysstat
- wget'
- git
- yum-utils
- bind-utils
- net-tools
- yum-cron
[root@puppet02 common]# vim /etc/puppetlabs/code/environments/production/site/profiles/manifests/common/packages.pp
$packages = lookup('packages::installed')
class profiles::common::packages {
package { $packages:
ensure => installed,
}
}
My site.pp file:
node default {
contain roles::base
#notify { "This is running the default in site.pp" }
}
↧
Unable to get roles/profiles working
Hello,
I'm new to roles/profiles. I had been using /etc/puppetlabs/code/environments//modules, and placecd all of my modules in there. I'm trying to use a role and profile to accomplish this now - so I have /etc/puppetlabs/code/environments//site/profile/manifests/base.pp, which applies all my base packages and initial configuration. Within base/ I have setup.pp, packages/ and sysconfig/. setup.pp includes packages/manifests/aide.pp (along with a few others).
I have the following snippet in setup.pp:
class profile::base::setup ( ) { package { 'epel-release': ensure => 'installed', } include profile::base::packages::aide ... }When I run puppet agent --test --noop, I get an error saying ::profile::base::packages::aide can't be found. Here's my directory structure:
[root@caspersb-pxesrc01 profile]# tree . . └── manifests └── base ├── packages │ ├── examples │ │ └── init.pp │ ├── files │ │ ├── etc │ │ │ ├── aide.conf │ │ │ ├── at.allow │ │ │ ├── at.deny │ │ │ ├── audit │ │ │ │ ├── auditd.conf │ │ │ │ └── rules.d │ │ │ │ └── audit.rules │ │ │ ├── chrony.conf │ │ │ ├── clamd.d │ │ │ │ └── scan.conf │ │ │ ├── cron.allow │ │ │ ├── cron.daily │ │ │ │ └── unowned │ │ │ ├── cron.deny │ │ │ ├── freshclam.conf │ │ │ ├── hosts.allow │ │ │ ├── hosts.deny │ │ │ ├── pam.d │ │ │ │ ├── local-auth │ │ │ │ ├── password-auth-ac │ │ │ │ └── system-auth-ac │ │ │ ├── rkhunter.conf │ │ │ ├── sudoers.d │ │ │ │ └── sudoers │ │ │ └── systemd │ │ │ └── system │ │ │ ├── aide.service │ │ │ ├── aide.timer │ │ │ ├── freshclam.service │ │ │ ├── freshclam.timer │ │ │ ├── puppet-agent.service │ │ │ ├── puppet-agent.timer │ │ │ ├── rkhunter-update.service │ │ │ ├── rkhunter-update.timer │ │ │ ├── sshd.service │ │ │ ├── yum-daily-update.service │ │ │ ├── yum-daily-update.timer │ │ │ ├── yum-weekly-update.service │ │ │ └── yum-weekly-update.timer │ │ └── usr │ │ └── local │ │ └── bin │ │ └── make-ssh-keys.sh │ ├── manifests │ │ ├── aide.pp │ │ ├── audit.pp │ │ ├── chrony.pp │ │ ├── clamav.pp │ │ ├── cron.pp │ │ ├── networkd.pp │ │ ├── pam.pp │ │ ├── prelink.pp │ │ ├── psacct.pp │ │ ├── puppet.pp │ │ ├── rkhunter.pp │ │ ├── ssh.pp │ │ ├── sudo.pp │ │ ├── sysstat.pp │ │ ├── system.pp │ │ ├── tcpwrappers.pp │ │ ├── vim.pp │ │ └── yum.pp │ └── templates │ ├── network.erb │ └── sshd_config.erb ├── setup.pp └── sysconfig ├── examples ├── files │ └── etc │ ├── audisp │ │ └── plugins.d │ │ └── syslog.conf │ ├── issue │ ├── modprobe.d │ │ ├── 01-usbstorage.conf │ │ ├── 02-ipv6.conf │ │ ├── 03-dccp.conf │ │ ├── 04-rds.conf │ │ ├── 05-sctp.conf │ │ ├── 06-tipc.conf │ │ ├── 07-cramfs.conf │ │ ├── 08-freevxfs.conf │ │ ├── 09-jffs2.conf │ │ ├── 10-hfs.conf │ │ ├── 11-hfsplus.conf │ │ ├── 12-squashfs.conf │ │ ├── 13-udf.conf │ │ ├── 14-bluetooth.conf │ │ └── 15-appletalk.conf │ ├── netconfig │ ├── securetty │ ├── security │ │ ├── limits.conf │ │ └── pwquality.conf │ ├── shutdown.allow │ ├── shutdown.deny │ ├── sysconfig │ │ ├── init │ │ └── prelink │ ├── sysctl.d │ │ ├── 01-ipv4.conf │ │ ├── 02-ipv6.conf │ │ ├── 03-kernel.conf │ │ ├── 04-fs.conf │ │ └── 05-vm.conf │ └── systemd │ └── journald.conf ├── manifests │ ├── audisp.pp │ ├── files.pp │ ├── modprobe.pp │ ├── security.pp │ ├── shutdown.pp │ ├── sysconfig.pp │ ├── sysctl.pp │ ├── systemctl.pp │ └── systemd.pp └── templates ├── cws.erb ├── hosts.erb ├── networking.erb └── network_persistent.erb 32 directories, 98 files [root@caspersb-pxesrc01 profile]#I know I'm doing something wrong, but I'm not sure what. I followed this as much as I could - https://puppet.com/docs/pe/2017.2/r_n_p_full_example.html - but there is some stuff that I think I need that isn't in there.
↧
Outstanding Location to Have fun with Online Poker
Undoubtedly, we are different and This Really Means that all of us have different passions. For example, if a few would rather to own pleasure external or todo different interactive tasks, some others would rather prefer to relax and spend their spare time in the coziness of of their domiciles. If you wind up within the next group, then we have wonderful news for you. Perhaps you have ever tried to play poker and you also adored it a whole lot? Or do you want to do this to the very first time and make certain you will delight in a superb experience? Then wait no longer and check out our website at the moment. There you are going to have the ability to locate amazing online games that you'll simply love.
Needless to Say, by assessing out the Planet Wide Web, you will discover a great deal of online games readily available, however let us recognize that many instances we are able to have unpleasant experiences, therefore the ideal method to avoid this website kind of situations will be to visit only advocated internet sites. Together with JayaPoker, there is no uncertainty which you may love countless advantages. First of all, you can enjoy free of the absolute most fascinating poker games, it's not necessary to abandon the relaxation of your home and thirdly, you are able to get pleasure from QqPokerOnline anytime you want and from anywhere you would like. The best of all is you could play Poker on the web from some other bright system you could have. Whatever you want to play independently or with some close friends, Domino QQ is unquestionably a terrific plan. JayaPoker can be precisely what you need for lonely evenings and sometimes when you yourself have nothing to really do. In the event you decide to try QQ Pokeronline plus it appears to own some terrible experiences or maybe in the event you have any recommendations for us, do not hesitate to get in touch with all our support team that's truly favorable and you'll always come across some body designed foryou personally.
Benefit from the Optimal/optimally gambling experiences ! Jaya Poker and perform your games each Single Time You would like to relax, to focus On whatever else than do the job, review or a few problems. This Is Surely One of The finest Poker on-line game in Indonesia and we guess you may want it much! To get more info information about DominoBet and DominoQQ, don't hesitate to have a look at the Aforementioned internet site. Provided That You've Got these poker games to perform, You won't ever get tired!
Needless to Say, by assessing out the Planet Wide Web, you will discover a great deal of online games readily available, however let us recognize that many instances we are able to have unpleasant experiences, therefore the ideal method to avoid this website kind of situations will be to visit only advocated internet sites. Together with JayaPoker, there is no uncertainty which you may love countless advantages. First of all, you can enjoy free of the absolute most fascinating poker games, it's not necessary to abandon the relaxation of your home and thirdly, you are able to get pleasure from QqPokerOnline anytime you want and from anywhere you would like. The best of all is you could play Poker on the web from some other bright system you could have. Whatever you want to play independently or with some close friends, Domino QQ is unquestionably a terrific plan. JayaPoker can be precisely what you need for lonely evenings and sometimes when you yourself have nothing to really do. In the event you decide to try QQ Pokeronline plus it appears to own some terrible experiences or maybe in the event you have any recommendations for us, do not hesitate to get in touch with all our support team that's truly favorable and you'll always come across some body designed foryou personally.
Benefit from the Optimal/optimally gambling experiences ! Jaya Poker and perform your games each Single Time You would like to relax, to focus On whatever else than do the job, review or a few problems. This Is Surely One of The finest Poker on-line game in Indonesia and we guess you may want it much! To get more info information about DominoBet and DominoQQ, don't hesitate to have a look at the Aforementioned internet site. Provided That You've Got these poker games to perform, You won't ever get tired!
↧
↧
Linda Ikeji And Don Jazzy > Nigerian News Blogger
I read the news of Google taking down posts from Linda Ikeji’s blog yesterday with deep interest. See Do not copy wrong! Writers own the exclusive rights to their works, and Here is an example of how to use others’ content material on your web site.
↧
Linda Ikeji Current News > Naija News Blogger
Nigerian news carrier blogger, writer, entrepreneur and former model.
↧
Linda Ikeji Latest News >> Naija News Blogger

↧
Is this a good practise?
I plan on creating **define resources** in a particular module, and use the defined resources in other modules for easier development and removing redundancy of code definition.
**We have a requirement of creating a list of files and executing a set of commands that is common in some modules. So I plan on creating a defined resource for that sequential operation which can be used by my teammates later for their modules.**
*The ultimate plan is to create a huge number of defined resource and use it in other modules for easier and consistent code.*
There are two plans, that I came up with,
1. Have 5 or 6 Generic puppet modules with define resources grouped in each puppet module.
2. Have one Generic Puppet Module and have all the defined resources in it and use them in other modules as we write customized code.
Which is the best option.
I have **one puppet master** with **foreman** managing the hostgroup classification.
There may be as much as **3k puppet agents** contacting the master for modules, **every one hour** at some point of time due to dynamic provisioning of hosts.
Which of the above 2 is a good strategy?
If both are not is there a different way to proceed for more generic resource creation?
**More Details**
**Current setup:**
120 hostgroups in foreman 2.9K~ agents checking with master every hour We are planning to create a setup where we control most of the system configs in puppet and hiera, so when a host goes down we can rebuild the host back faster with puppet and hiera.
Hiera for hosts is managed by a tool for changes. All our host apps are for providing microservices. We sysadmins want to manage the packages and configs with hiera only, so we can build identical hosts from config details from hiera (Minimal human intervention in change of configs in hosts) faster provisioning when needed.
We have limited infra, so we came up with this plan to provision identical hosts during peak load and decom them later.
**Code plan details:**
use case:
process 1 has a series of steps
process 2 has series of steps
In process 1: step 5 has 3 operations
In process 2: step 2 has 3 operations
Which are the same. So I thought we can have define resource to do that 3 operations in a separate gen-module and call in both modules of process 1 and 2.
So the max gen-define-resources ops I could come up with is around 21 now.
Current max modules on a host group is around 20.
↧
↧
And how do i make sure that this package was installed through chocolatey??
I actually installed my chocolatey and mysql all that kind of stuff in master and is working well in agent. But the issue is actually i installed mysql version 3.0.1 but in agent it is like 5.7. And my install options was program files but it was installed in program data and is running in tools. I want to know what went wrong and how can i overcome it?? And how do i make sure that this package was installed through chocolatey??
My master is ubuntu 16.04
My agent is windows 8.1
My puppet version is 3.8.5
init.pp
class mysql{
package {'mysql':
ensure => installed,
provider => 'chocolatey',
install_options => ['-override', '-installArgs', '"/INSTALLDIR=""C:\Program', 'Files"""'],
}
service { 'mysql':
ensure => true,
enable => true,
require => Package['mysql'],
}
}
↧
duplicate declaration error w/o multiple declaritions
Hi,
I'm getting this strange error (Puppetserver standalone Docker container and PP5 agent):
root@login01:~# /opt/puppetlabs/bin/puppet agent -tv
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Systemd] is already declared; cannot redeclare at /etc/puppetlabs/code/environments/production/modules/systemdisease/manifests/init.pp:7 at /etc/puppetlabs/code/environments/production/modules/systemdisease/manifests/init.pp:7:2 on node login01.uni-math.gwdg.de
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
I have no idea where the first declaration comes from [`include systemdisease` appears three times in _separate_ `node` groups]:
$ grep -ERi '(include|class).*[^:]systemd[^_:]' ./*
./manifests/site.pp: include systemdisease
./manifests/site.pp: include systemdisease
./manifests/site.pp: include systemdisease
./modules/systemd/readme.md:without having to use my `Class['systemd']`.
./modules/systemd/readme.md: [`IOSchedulingClass=` in `systemd.exec(5)`](https://freedesktop.org/software/systemd/man/systemd.exec.html#IOSchedulingClass=)
./modules/systemd/manifests/init.pp:class systemd (
./modules/systemdisease/manifests/init.pp:class systemdisease {
./modules/systemdisease/manifests/init.pp: class { 'systemd':
Everything looks fine
$ head -7 modules/systemdisease/manifests/init.pp; tail -3 modules/systemdisease/manifests/init.pp
# name: system disease
# desc: manages system disease
# auth: Kai Burghardt
# vim: set tw=140 ts=4 noet bs=eol,start,indent fdm=marker:
class systemdisease {
class { 'systemd':
}
}
# EOF
Now I have to divide and conquer trying to isolate the module, the file, the first declaration allegedly is in. Why does this all of the sudden happen? I'm not that stupid and write `class { 'systemd':` a second time.
↧
Transform array
Hi Everyone,
This sounds trivial, but I cant wrap my head around what I need to do:
I have:
$nodes=["node1","node2","node3"]
I want to end up with a string that looks like this:
$somestring = "node1=http://node1:2380,node2=http://node2:2380,node3=http://node3:2380"
I have tried this:
$nodes = ['node1','node2','node3']
$nodes2 = $nodes $merged =
concat($nodes,$nodes2) $sorted =
sort($merged) $test = $sorted.reduce |
$memo, $value | {
"${memo}=http://$value:2380," } notify
{"nodelist is $test":}
But gives me:
node1=http://node1:2380,=http://node2:2380,=http://node2:2380,=http://node3:2380,=http://node3:2380,
↧
require class:something
If I have
class::something {"blah":
parameter => test
}
How do I then "require" class::something in another resource?
E.g.
file {"/etc/something":
ensure => present,
require => class::something['blah']
}
↧
↧
Pe PuppetDB service failed to Start
I couldn't start the puppetserver and Pe puppetDB services. Can anybody help me to solve this error?
I have mentioned the error below,
# systemctl status pe-puppetdb.service
● pe-puppetdb.service - pe-puppetdb Service
Loaded: loaded (/lib/systemd/system/pe-puppetdb.service; enabled; vendor preset: enabled)
Active: activating (start) since Thu 2018-03-22 09:51:41 UTC; 49s ago
Control: 25587 (bash)
Tasks: 21
Memory: 390.3M
CPU: 1min 31.913s
CGroup: /system.slice/pe-puppetdb.service
├─25587 bash /opt/puppetlabs/server/apps/puppetdb/cli/apps/start
├─25595 /opt/puppetlabs/server/bin/java -Xmx256m -Xms256m -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/var/log/puppetlabs/puppetdb/puppetdb_gc.log -XX
└─25741 sleep 1
systemd[1]: Starting pe-puppetdb Service...
puppetdb[25587]: The [database] classname setting has been retired and will be ignored.
puppetdb[25587]: The [database] subprotocol setting has been retired and will be ignored.
puppetdb[25587]: The [database] classname setting has been retired and will be ignored.
puppetdb[25587]: The [database] subprotocol setting has been retired and will be ignored.
While running #**puppet agent -t**
I got the error as **failed to open TCP connection on port 8140**
↧
do i need a site.pp if im using hiera?
do i still need a manifests/site.pp if i'm using hiera? for example, if i have production/data/nodes/nodename.yaml, an appropriately configured hiera.yaml in production/, do i still need to define nodes in production/manifest/site.pp?
↧
How do I tell what ran puppet on my system?
I'm trying to set up monitoring for a database server, but found my config changes being wiped out. I know we use puppet in our environment, so I disabled it on the machine while I tinkered so I could figure out what setting I needed, using:
mco service puppet stop -F hostname=bonnie
I then started working again, only to find my changes once more wiped out, so I checked to see if it was still off, and it sure seems to be:
[root@bonnie lib]# service puppet status
Redirecting to /bin/systemctl status puppet.service
● puppet.service - Puppet agent
Loaded: loaded (/usr/lib/systemd/system/puppet.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Thu 2018-03-22 16:25:13 EDT; 1h 40min ago
Main PID: 963 (code=exited, status=0/SUCCESS)
Mar 22 15:41:35 bonnie.stockpile.nemgint.com puppet-agent[963]: Setting 'pluginsync' is deprecated.
Mar 22 15:41:35 bonnie.stockpile.nemgint.com puppet-agent[963]: (at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/defaults.rb:1744:in `block in ')
Mar 22 15:41:50 bonnie.stockpile.nemgint.com puppet-agent[963]: Config file /etc/puppetlabs/puppet/puppet.conf changed; triggering re-parse of all config files.
Mar 22 16:01:16 bonnie.stockpile.nemgint.com puppet-agent[963]: Skipping run of Puppet configuration client; administratively disabled (Reason: 'reason not specified');
Mar 22 16:01:16 bonnie.stockpile.nemgint.com puppet-agent[963]: Use 'puppet agent --enable' to re-enable.
Mar 22 16:04:05 bonnie.stockpile.nemgint.com puppet-agent[963]: Config file /etc/puppetlabs/puppet/puppet.conf changed; triggering re-parse of all config files.
Mar 22 16:04:20 bonnie.stockpile.nemgint.com puppet-agent[963]: Config file /etc/puppetlabs/puppet/puppet.conf changed; triggering re-parse of all config files.
Mar 22 16:25:12 bonnie.stockpile.nemgint.com systemd[1]: Stopping Puppet agent...
Mar 22 16:25:12 bonnie.stockpile.nemgint.com puppet-agent[963]: Caught TERM; exiting
Mar 22 16:25:13 bonnie.stockpile.nemgint.com systemd[1]: Stopped Puppet agent.
[root@bonnie lib]# puppet agent --test
Notice: Skipping run of Puppet configuration client; administratively disabled (Reason: 'reason not specified');
Use 'puppet agent --enable' to re-enable.
...so I'm a little baffled as to how these changes are being made; am I wrong about puppet being off? Is there some way to see what is running puppet on this system?
↧
Puppet Agent: Error: /File: Failed to generate additional resources using 'eval_generate': SSL_connect returned=1 errno=0 state=error: certificate verify failed
We are using custom CA certs and getting the below error when running puppet agent -t on puppet master or any of the puppet server nodes.
Error: /File[/export/home/progress/.puppetlabs/opt/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': SSL_connect returned=1 errno=0 state=error: certificate verify failed: [ok for /C=US/O=U.S. Government/OU=DoD/OU=PKI/OU=OSD/CN=c1pupmast01.defensetravel.osd.mil]
Error: /File[/export/home/progress/.puppetlabs/opt/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [ok for /C=US/O=U.S. Government/OU=DoD/OU=PKI/OU=OSD/CN=c1pupmast01.defensetravel.osd.mil]
------------------------------------------------------------------------------------------
puppetserver --version
puppetserver version: 2017.3.0.52
↧
↧
Hiera not working for puppet version 5
Hello ,
I recently upgraded puppet version 3 to version 5. all is working fine with new version by my hiera configurations for puppet 5 is not working. i think even the hiera.yaml is not getting read. please advise what should i do here. below are the configurations for my setup.
1) Hiera.yaml
cat /etc/puppetlabs/puppet/hiera.yaml
version: 5
defaults:
datadir: /etc/puppetlabs/code/hieradata/
data_hash: yaml_data
hierarchy:
- name: "Test"
path: "nodes/%{environment}/%{trusted.certname}.yaml"
2) And my Environment YAML files are kept at
cat /etc/puppetlabs/code/hieradata/nodes/staging/puppetaws.demo.com.yaml
demo::configuration::phpini::memory_limit: "32"
But nothing is getting changed on my remote machine when I run the puppet command
/opt/puppetlabs/bin/puppet agent
please suggest what i am doing wrong here.
Thanks & Regards
Sushil.R
↧
Unable to submit report
Hi,
I'm using "puppet apply" to apply a catalog locally on puppet agent and trying to send a report but facing an error after applying catalog successful.
The command used is "puppet apply /etc/samp.pp --reports=http --reporturl=https://puppetconsole.local/#/cm/reports" leading to an error Error: Unable to submit report to https://puppetconsole.local/#/cm/reports [404] Not Found.
I tried modifying puppet.conf files too but that didn't help.
master puppet.conf
[main]
reports=http,store
reporturl=https://puppetconsole.local/#/cm/reports
agent puppet.conf
[main]
report=true
The http ports are open and no issue with firewall. Can anyone help me to sort out the issue?
Thanks in advance.
↧
pe-puppetserver not starting
[root@puppetserver puppet]# puppet --version
4.10.1
[root@puppetserver puppet]# puppet resource service puppetserver ensure=running
Error: Could not start Service[puppetserver]: Execution of '/sbin/service puppetserver start' returned 1: puppetserver: unrecognized service
Error: /Service[puppetserver]/ensure: change from stopped to running failed: Could not start Service[puppetserver]: Execution of '/sbin/service puppetserver start' returned 1: puppetserver: unrecognized service
service { 'puppetserver':
ensure => 'stopped',
}
################# puppet.conf
[main]
certname = puppetserver.example.com
server = puppetserver.example.com
user = pe-puppet
group = pe-puppet
ca = false
certification_revocation = false
environment_timeout = 0
app_management = true
module_groups = base+pe_only
waitforcert = 6h
ca_server = puppetserver.example.com
[agent]
graph = true
server = puppetserver.example.com
ca_server = puppetserver.example.com
ca = false
waitforcert = 6h
[master]
storeconfigs = true
storeconfigs_backend = puppetdb
reports = puppetdb
certname = puppetserver.example.com
dns_alt_names = puppetmaster,puppetserver, puppetserver.example.com,master
environment_timeout = unlimited
ca = false
waitforcert = 6h
↧