Jira (BOLT-1378) install bolt to a specified path not /opt for none root users.

4 views
Skip to first unread message

Adam Buxton (JIRA)

unread,
Jun 10, 2019, 8:29:03 AM6/10/19
to puppe...@googlegroups.com
Adam Buxton created an issue
 
Puppet Task Runner / Improvement BOLT-1378
install bolt to a specified path not /opt for none root users.
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2019/06/10 5:28 AM
Priority: Normal Normal
Reporter: Adam Buxton

not all users on managed User End Devises have root access as such we need a way to deploy bolt to a user specified path

 

the homebrew install is the primary target of this but `--appdir` directive only controls the cask not the install location.

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Joe Santoro (JIRA)

unread,
Jun 10, 2019, 8:42:04 AM6/10/19
to puppe...@googlegroups.com
Joe Santoro commented on Improvement BOLT-1378
 
Re: install bolt to a specified path not /opt for none root users.

Description:

We would like to install puppet-bolt to our home directories

 

Problem:

We have MAC's that are secured and we don't have admin privileges.

Brew has been installed into our home directories using instructions such as

     https://andrewjorgensen.com/post/install-homebrew-to-your-home-directory/

 

Now when we run brew to install puppet-bolt as per puppetlabs instructions we get the following:-

 

brew cask install puppetlabs/puppet/puppet-bolt

==> Caveats

Puppet Bolt binaries are installed in /opt/puppetlabs/bolt/bin, which is sourced by an /etc/paths.d entry.
/opt/puppetlabs/bolt/bin may not be included in your current $PATH but should be included in new shells.

==> Satisfying dependencies
==> Downloading https://downloads.puppet.com/mac/puppet/10.14/x86_64/puppet-bolt-1.22.0-1.osx10.14.dmg

                                                                                                                                                1. 100.0%
                                                                                                                                                  ==> Verifying SHA-256 checksum for Cask 'puppet-bolt'.
                                                                                                                                                  ==> Installing Cask puppet-bolt
                                                                                                                                                  ==> Running installer for puppet-bolt; your password may be necessary.
                                                                                                                                                  ==> Package installers may write to any location; options such as --appdir are ignored.
                                                                                                                                                  Password:
                                                                                                                                                  ```Sorry, user firstname.surname is not allowed to execute '/usr/bin/env LOGNAME=firstname.surname USER=firstname.surname USERNAME=firstname.surname /usr/sbin/installer -pkg /Users/firstname.surname/homebrew/Caskroom/puppet-bolt/1.22.0/puppet-bolt-1.22.0-1-installer.pkg -target /' as root on MACHINE.
                                                                                                                                                  ==> Purging files for version 1.22.0 of Cask puppet-bolt
                                                                                                                                                  Error: Failure while executing; `/usr/bin/sudo -E – env LOGNAME=firstname.surname USER=firstname.surname USERNAME=firstname.surname /usr/sbin/installer -pkg /Users/firstname.surname/homebrew/Caskroom/puppet-bolt/1.22.0/puppet-bolt-1.22.0-1-installer.pkg -target /` exited with 1. Here's the output:
                                                                                                                                                  Sorry, try again.
                                                                                                                                                  Sorry, user firstname.surname is not allowed to execute '/usr/bin/env LOGNAME=firstname.surname USER=firstname.surname USERNAME=firstname.surname /usr/sbin/installer -pkg /Users/firstname.surname/homebrew/Caskroom/puppet-bolt/1.22.0/puppet-bolt-1.22.0-1-installer.pkg -target /' as root on MACHINE.

 

Please advise how we can install puppet-bolt to our home directories using brew or any other method that does not require admin rights

 

 

Reply all
Reply to author
Forward
0 new messages