Skip to content

Instantly share code, notes, and snippets.

Marcus Philip marcusphi

Block or report user

Report or block marcusphi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am marcusphi on github.
  • I am marcus_phi (https://keybase.io/marcus_phi) on keybase.
  • I have a public key ASAOyy9nbBac2_a4cE7ZaTSC6yLx8hNiTXy7eTJuRotuVQo

To claim this, I am signing this object:

@marcusphi
marcusphi / puppet_jdk_rpm_fails.txt
Created Jan 13, 2016
puppet jdk rpm install fails silently
View puppet_jdk_rpm_fails.txt
Puppet code:
------------
package { 'jdk-1.7.0_80-fcs.i586':
provider => 'rpm',
source => '/etc/puppet/modules/jdk/files/jdk-7u80-linux-i586.rpm',
}
#Get rpm manually:
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-i586.rpm"
@marcusphi
marcusphi / ansible_conditionals_examples.yaml
Created Oct 2, 2013
Ansible 1.3 Conditional Execution -- Very complete example with comments -- I find the conditional expressions to be ridiculously hard to get right in Ansible. I don't have a good model of what's going on under the surface so I often get it wrong. What makes it even harder is that there has been at least three different variants over the course …
View ansible_conditionals_examples.yaml
---
# This has been tested with ansible 1.3 with these commands:
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false"
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true"
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts"
# NB: The type of the variable is crucial!
- name: Ansible Conditionals Examples
hosts: $hosts
vars_files:
You can’t perform that action at this time.