Skip to content

Instantly share code, notes, and snippets.

View CalvinHartwell's full-sized avatar
💭
Delivering Kubernetes!

Calvin Hartwell CalvinHartwell

💭
Delivering Kubernetes!
View GitHub Profile
Error: Could not set 'present' on ensure: cannot generate tempfile `/etc/centrifyda/user.audit.always20160413-32689-j2sa5n-9' at 22:/puppet/repo-sat6-puppet/directaudit/manifests/init.pp
Error: Could not set 'present' on ensure: cannot generate tempfile `/etc/centrifyda/user.audit.always20160413-32689-j2sa5n-9' at 22:/puppet/repo-sat6-puppet/directaudit/manifests/init.pp
Wrapped exception:
cannot generate tempfile `/etc/centrifyda/user.audit.always20160413-32689-j2sa5n-9'
Error: /Stage[main]/Directaudit/File[/etc/centrifyda/user.audit.always]/ensure: change from absent to present failed: Could not set 'present' on ensure: cannot generate tempfile `/etc/centrifyda/user.audit.always20160413-32689-j2sa5n-9' at 22:/puppet/repo-sat6-puppet/directaudit/manifests/init.pp
[root@gbl59900153 facts.d]# ls
hardware.rb
[root@gbl59900153 facts.d]# vi hardware.rb
Facter.add(:hardware_platform) do
setcode do
Facter::Util::Resolution.exec('uname')
end
end
puppetlabs.trapperkeeper.services.authorization.authorization-service/authorization-service
puppetlabs.services.ca.certificate-authority-service/certificate-authority-service
puppetlabs.code-manager.services/code-manager-v1
puppetlabs.trapperkeeper.services.webserver.jetty9-service/jetty9-service
puppetlabs.services.jruby.jruby-puppet-service/jruby-puppet-pooled-service
puppetlabs.services.legacy-routes.legacy-routes-service/legacy-routes-service
puppetlabs.enterprise.services.puppet-profiler.puppet-profiler-service/metrics-puppet-profiler-service
puppetlabs.enterprise.services.jruby.pe-jruby-metrics-service/pe-jruby-metrics-service
puppetlabs.enterprise.services.master.master-service/pe-master-service
puppetlabs.enterprise.services.metrics.pe-metrics-service/pe-metrics-service
Actions::Pulp::Repository::DistributorPublishChanges
Input:
{"pulp_id"=>
"kittens-le-production-ccv-rhel-7-1636_0-kittens-Unix-Tooling-kittens-Unix-Tooling-RHEL7",
"capsule_id"=>13,
"distributor_id"=>
@CalvinHartwell
CalvinHartwell / gist:62f6d8d2d6decb88a1c616c1a7669942
Last active September 28, 2017 13:41
Example ansible error with nested when in role
# works fine:
- name: generate kittens to take over the world
hosts: places_where_dogs_reside
gather_facts: yes
roles:
- { role: train-kitten-for-battle, topics: ["whiskers"], partitions: 6, replication: 2}
# does not work:
- name: generate kittens to take over the world
hosts: places_where_dogs_reside
@CalvinHartwell
CalvinHartwell / dockerfile
Created January 23, 2018 01:38
simple ubuntu nginx container
FROM ubuntu
# Set the file maintainer (your name - the file's author)
MAINTAINER CALVIN
# install nginx
RUN \
apt-get update && \
apt-get install -y nginx && \
rm -rf /var/lib/apt/lists/* && \
@CalvinHartwell
CalvinHartwell / game.properties
Created February 6, 2018 23:26
kubernetes context maps example
game.properties: |
enemies=aliens
lives=3
enemies.cheat=true
enemies.cheat.level=noGoodRotten
secret.code.passphrase=UUDDLRLRBABAS
secret.code.allowed=true
secret.code.lives=30
@CalvinHartwell
CalvinHartwell / secrets.yaml
Created February 6, 2018 23:45
Kubernetes Secrets Example
apiVersion: v1
kind: Secret
metadata:
name: mysecret
type: Opaque
data:
username: YWRtaW4=
password: MWYyZDFlMmU2N2Rm
@CalvinHartwell
CalvinHartwell / microbotv1
Last active February 8, 2018 09:39
Microbot v1 with ingress
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: microbot-v1
name: microbot-v1
spec:
replicas: 5
selector:
@CalvinHartwell
CalvinHartwell / nfs.yaml
Created February 7, 2018 14:55
nfs-k8s-persistant-volume
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-1
spec:
capacity:
storage: 5Mi
accessModes:
- ReadWriteMany