Skip to content

Instantly share code, notes, and snippets.

@tateeskew
Created August 13, 2013 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tateeskew/6222531 to your computer and use it in GitHub Desktop.
Save tateeskew/6222531 to your computer and use it in GitHub Desktop.
Install sudo-ldap on Ubuntu using salt cmd.run state
install_sudo-ldap:
cmd.run:
- name: apt-get -q -y -o DPkg::Options::=--force-confold -o DPkg::Options::=--force-confdef install sudo-ldap
- env: SUDO_FORCE_REMOVE=yes
@jasonrm
Copy link

jasonrm commented Nov 30, 2014

Wanted to leave a quick note for others (and my future self) of what my final state looked like since I happened across this via Google while I was getting this to work.

It's not documented as far as I can tell, but env is passed through to module.aptpkg.

install_sudo-ldap:
  pkg.installed:
    - name: sudo-ldap
    - env:
      - SUDO_FORCE_REMOVE: 'yes'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment