This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat foo | sed 's/^[[:space:]]*//g' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import re | |
import sys | |
foo = "192.168.1.1" | |
bar = re.sub (r'\b(\d+\.\d+\.\d+)\.\d+\b', r'\1.0', foo ) | |
print (bar) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible digitalocean-all -m yum -a “name=https://yum.puppetlabs.com/puppetlabs-release-pc1-el-6.noarch.rpm state=present” | |
ansible droplet1-west -m yum -a "name=puppetserver state=latest" | |
ansible digitalocean-all -m yum -a "name=puppet state=latest" | |
ansible droplet1-west -m service -a "name=puppetserver enabled=yes state=restarted" | |
ansible digitalocean-all -m yum -a "name=puppet state=latest" | |
ansible digitalocean-all -m service -a "name=puppet enabled=yes state=restarted" | |
ansible droplet1-west -m shell -a "/opt/puppetlabs/bin/puppet cert list --all" | |
ansible droplet1-west -m shell -a "/opt/puppetlabs/bin/puppet cert sign --all" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
printf "test\n" |