Skip to content

Instantly share code, notes, and snippets.

View bitmand's full-sized avatar

Lasse Brandt Thomsen bitmand

View GitHub Profile
@bitmand
bitmand / gist:c6b7332214d858130c52
Last active December 20, 2017 13:51
Salt Stack state for creating a uniq 2048-bit diffie hellman group
# Create a unique 2048 Diffie Hellman group
# https://weakdh.org
/etc/ssl/dhparams.pem:
cmd.run:
- name: openssl dhparam -out /etc/ssl/dhparams.pem 2048
- unless: test -f /etc/ssl/dhparams.pem

Keybase proof

I hereby claim:

  • I am bitmand on github.
  • I am bitmand (https://keybase.io/bitmand) on keybase.
  • I have a public key whose fingerprint is C846 C6EB 90D8 7843 02B8 7A2E AEF4 4400 1133 CE00

To claim this, I am signing this object:

@bitmand
bitmand / gist:1c2c1119d27727ac33d4
Created March 8, 2015 10:28
Running salt "locally" over ssh
$ alias salt='ssh -t saltmaster.example.com "sudo salt $1"'
$ salt '*' test.ping
[sudo] password for user:
host1.example.com:
True
host2.example.com:
True
...