https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • j

    Jonathon Anderson

    04/28/2022, 5:50 PM
    the
    cmd
    window I'm using is running as administrator
  • n

    natemccurdy

    04/28/2022, 5:50 PM
    Ah, you’;re not using the
    powershell
    module? https://forge.puppet.com/modules/puppetlabs/powershell
  • j

    Jonathon Anderson

    04/28/2022, 5:50 PM
    didn't know there was one
    😁 1
  • s

    Slackbot

    04/28/2022, 5:51 PM
    This message was deleted.
    a
    o
    • 3
    • 6
  • n

    natemccurdy

    04/28/2022, 5:51 PM
    I highly recommend using that whenever you want to
    exec
    a Powershell script. You use it by installing that module then setting
    provider => 'powershell'
    in the exec.
  • j

    Jonathon Anderson

    04/28/2022, 5:52 PM
    lemme give that a try
  • n

    natemccurdy

    04/28/2022, 6:02 PM
    command => "& C:\path\to\script.ps1",
  • n

    natemccurdy

    04/28/2022, 6:24 PM
    happy to help
  • s

    Slackbot

    04/28/2022, 6:33 PM
    This message was deleted.
    b
    n
    • 3
    • 5
  • b

    bastelfreak

    04/28/2022, 6:35 PM
    do you still use that?
  • n

    nwops

    04/28/2022, 6:38 PM
    I don’t, client does. Still going strong.
  • b

    binford2k

    04/28/2022, 7:04 PM
    tangent; if they or anyone else is interested in owning Razor, it's in the toy chest and up for adoption. https://github.com/puppetlabs-toy-chest/razor-server
  • b

    binford2k

    04/28/2022, 7:12 PM
    I did a blog the other day, https://puppet.com/blog/the-evolution-of-puppet-community/ But the Toy Chest org itself talks about how to adopt a repo too.
  • s

    Slackbot

    04/28/2022, 8:05 PM
    This message was deleted.
    b
    b
    +4
    • 7
    • 49
  • o

    op-ct

    04/28/2022, 8:08 PM
    Either that, or add "/etc/puppetlabs/..../modules" to the modulepath entry in the Bolt project's
    bolt-project.yaml
  • s

    Slackbot

    04/28/2022, 8:20 PM
    This message was deleted.
    b
    r
    • 3
    • 10
  • a

    Allahshukur Ahmadzada

    04/28/2022, 8:42 PM
    I see, module developed locally. Is it same with Puppet Enterprize?
  • j

    Jonathon Anderson

    04/28/2022, 8:49 PM
    any idea why the chocolatey module would be inserting semicolons into the package installation command like this? I'm getting invalid path errors. I've tried all combinations of single and double quotation marks
    nginx;"--params: '\/installLocation:C:\Program;Files\NGINX\'"
    this is my code for the install
    Copy code
    package { 'NGINX':
        ensure          => '1.21.6',
        name            => 'nginx',
        provider        => 'chocolatey',
        install_options => '--params "/installLocation:C:\\Program Files\\NGINX"',
      }
  • o

    op-ct

    04/28/2022, 8:50 PM
    It would be less weird if Puppet's README.md didn't make a point that it uses semantic version numbers, because SemVer is intended to track public API changes and _not_ changed deps.
  • j

    Jonathon Anderson

    04/28/2022, 8:51 PM
    oof
  • s

    Slackbot

    04/28/2022, 8:51 PM
    This message was deleted.
    f
    • 2
    • 2
  • j

    Jonathon Anderson

    04/28/2022, 8:51 PM
    just found you have to split on every space
  • n

    natemccurdy

    04/28/2022, 8:51 PM
    Try making
    install_options
    an array.
    Copy code
    install_options => ['--params', '/installLocation:C:\Program Files\NGINX'],
  • j

    Jonathon Anderson

    04/28/2022, 8:52 PM
    just found this example in the docs... this is ugly
    Copy code
    '"/INSTALLDIR=""C:\Program', 'Files\somewhere"""'
    windows 2
  • s

    Slackbot

    04/28/2022, 8:53 PM
    This message was deleted.
    f
    • 2
    • 2
  • j

    Jonathon Anderson

    04/28/2022, 8:56 PM
    well, that worked 🤮
  • b

    binford2k

    04/28/2022, 8:57 PM
    whoever first thought that spaces in pathnames were a good idea facepalm
  • j

    Jonathon Anderson

    04/28/2022, 9:03 PM
    yea, that too
  • j

    Jonathon Anderson

    04/28/2022, 9:03 PM
    I blame Bill Gates
  • y

    Yorokobi

    04/28/2022, 9:04 PM
    Blame him for the backslashes, too.
1...111213...428Latest