simp / simp/rubygem-simp-cli

Missing puppet serverport configuration causes simp bootstrap to fail

Open
#188 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

community needs-attention
Dominant language
Ruby
Stars
2
Forks
12
Avg merge
2d 21h
Merged PRs (30d)
4

Description

Somewhere along the line, either simp config or simp bootstrap failed to set the serverport setting in my puppet.conf. As a result, when this puppet command is triggered and simp bootstrap runs puppet config to figure out the server port, it gets back the default value of 8140 rather than the configured puppetserver port, 8150. A quick fix for this would have been to simply pass @initial_puppetserver_port to the track_output call on line 99, like is done on line 69, thus ensuring that the port number thats intelligently selected would be what's used. I still need to figure out why my agent wasn't configured properly, though I think that's probably my fault since I'm attempting to run SIMP on rocky and I suspect something silently failed to set the agent setting somewhere along the line.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in lib/simp/cli/commands/bootstrap.rb at the track_output call on line 99, then compare it with the call on line 69 and inspect how puppet config determines the server port. Reproduce the bootstrap path where 8140 is returned instead of 8150; done means the intelligently selected puppetserver port is used, while the separate agent-configuration cause remains understood or documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.