This message was deleted.
# bolt
s
This message was deleted.
b
did you define a node in the inventory.yaml that's named target1?
n
Hi bastelfreak (it's been while :D) The content of `inventory.yaml`:
Copy code
groups:
- name: containers
  targets:
    - uri: 127.0.0.1:2000
      name: target1
    - uri: 127.0.0.1:2001
      name: target2
  config:
    transport: ssh
    ssh:
      user: root
      password: root
      host-key-check: false
Isn't that right?
b
mhm
I suck at validating yaml in my head but it looks okay
there's something like
bolt groups show
or
bolt groups list
?
check that
n
It doesn’t look like that repo has been updated for bolt 3… you might be able to run
bolt project migrate
🆗 1
Specifically I think the bolt.yaml needs to be bolt-project.yaml and have a name set
b
oh
right
n
I thought I just follow the docs^^, I run the migrate command, and it created an `~/.puppetlabs/bolt/bolt-project.yaml`:
Copy code
---
modules: []
It didn't rename/modify any files int the repo...
y
bolt inventory show --detail
should show the Bolt’s vision of the inventory
n
Hmm that means it didn’t even identify that it was in a project that needed to be migrated
n
Ah I had to give the path to the project
It didn't just take the current folder.
n
Very strange. In any case it’s a problem with the repo. You’re right that you should just be able to follow the docs.
n
The docs are outdated, they are not compatible to 3.0
y
I’d raise an issue in the Bolt github repo about docs
1
ah.. or maybe in the example repo you’re using.. not sure if it’s supported at all though
nice low hanging fruit for 4th May hackathon I’d say 🙂
n
this docs ('ll create an issue)
n
Ahh I see, the instructions to create the project from scratch look up to date, but the canned repo we give you to download isn’t
n
Ah I think now I get it, the inventory file was OK, but the bolt.yaml was replaced by bolt-project.yaml...
n
Yeah, and without the bolt-project.yaml file there, bolt doesn’t recognize the directory as a bolt project, so it never loads the inventory
In that case it actually will look for an inventory in the “default” project, which is
~/.puppetlabs/bolt
n
bolt command run whoami -t all
worked as expected 🙂
easy button 1