https://www.puppet.com/community logo
Join Slack
Powered by
# office-hours
  • c

    Cas Donoghue

    03/14/2023, 2:32 PM
    also, what does the inventory look like for that target?
  • v

    vchepkov

    03/14/2023, 2:35 PM
    seems ignores host setting
    Copy code
    2023-03-14T10:34:10.497352 INFO   [exec-worker-1] [Bolt::Executor] {"target":"<http://host.example.com|host.example.com>","action":"task","object":null,"status":"failure","value":{"_error":{"details":{"file":"/Users/user/Bolt/home/.modules/facts/plans/info.pp","line":10},"kind":"puppetlabs.tasks/connect-error","msg":"Timeout after 10 seconds connecting to <http://host.example.com|host.example.com>","issue_code":"CONNECT_ERROR"}}}
  • v

    vchepkov

    03/14/2023, 2:36 PM
    Copy code
    targets:
      - name: <http://host.example.com|host.example.com>
        alias: host
        config:
          ssh:
            host: 192.168.8.1
          pcp:
            host: <http://host.example.com|host.example.com>
    groups:
      - name: virtual
        targets:
          - _plugin: puppetdb
            query: "inventory[certname] { facts.is_virtual = true }"
  • v

    vchepkov

    03/14/2023, 2:37 PM
    it will be otherwise in puppetdb inventory and the only reason I have defined it separately - that transport issue
  • v

    vchepkov

    03/14/2023, 2:44 PM
    I think it uses uri in ssh and not host
  • v

    vchepkov

    03/14/2023, 2:44 PM
    and uri in config hash is not available
  • c

    Cas Donoghue

    03/14/2023, 2:44 PM
    That should not be the case...
  • d

    Dr Bunsen Honeydew

    03/14/2023, 2:45 PM
    waiting _🦊Vox Pupuli monthly sync; see calendar event for info_ is about to start up in -15 minutes
  • c

    Cas Donoghue

    03/14/2023, 2:45 PM
    if you use
    name
    then
    host
    should be the case
  • c

    Cas Donoghue

    03/14/2023, 2:45 PM
    if you use
    uri
    in the config that would override the
    host
  • v

    vchepkov

    03/14/2023, 2:45 PM
    I don't use uri and yet, when I use
    bolt inventory show --details
    it is populated
  • v

    vchepkov

    03/14/2023, 2:46 PM
    Copy code
    $ grep -c uri inventory.yaml 
    0
  • c

    Cas Donoghue

    03/14/2023, 2:46 PM
    What is the
    URI
    in
    inventory show
    ?
  • v

    vchepkov

    03/14/2023, 2:46 PM
    certname
  • v

    vchepkov

    03/14/2023, 2:47 PM
    Copy code
    $ bolt inventory show -t host --detail|grep uri
      uri: <http://host.example.com|host.example.com>
  • v

    vchepkov

    03/14/2023, 2:47 PM
    Copy code
    $ bolt inventory show -t host --detail|grep uri
      uri: <http://host.example.com|host.example.com>
  • c

    Cas Donoghue

    03/14/2023, 2:48 PM
    The root of the issue is that
    host
    is somehow being overridden in the
    ssh
    transport
  • c

    Cas Donoghue

    03/14/2023, 2:48 PM
    This looks like a bug to me
  • v

    vchepkov

    03/14/2023, 2:48 PM
    k, not me then 🙂
  • v

    vchepkov

    03/14/2023, 2:48 PM
    I can file a bug
  • c

    Cas Donoghue

    03/14/2023, 2:48 PM
    Can you file a bug with this info?
  • c

    Cas Donoghue

    03/14/2023, 2:48 PM
    haha
  • c

    Cas Donoghue

    03/14/2023, 2:48 PM
    thanks
    👍 1
  • c

    Cas Donoghue

    03/14/2023, 2:49 PM
    I think you already know this but we track bolt issues in GH https://github.com/puppetlabs/bolt/issues
    ✔️ 1
  • v

    vchepkov

    03/14/2023, 2:50 PM
    FYI, when I removed puppetdb groups from inventory, uri is not populated
  • v

    vchepkov

    03/14/2023, 2:50 PM
    so, it's a combination of those
  • c

    Cas Donoghue

    03/14/2023, 2:56 PM
    ah, so it works then?
  • c

    Cas Donoghue

    03/14/2023, 2:59 PM
    I bet the
    target_mapping
    for the puppetdb defaults to URI
  • c

    Cas Donoghue

    03/14/2023, 2:59 PM
    If you configure that to be
    host
    etc then it should work
  • v

    vchepkov

    03/14/2023, 3:00 PM
    I don't specify target_mapping, should I ?
1...434445...78Latest