Skip to content

Instantly share code, notes, and snippets.

@cyberjso
cyberjso / keybase.md
Created April 9, 2015 13:04
keybase.md

Keybase proof

I hereby claim:

  • I am cyberjso on github.
  • I am cyber_jso (https://keybase.io/cyber_jso) on keybase.
  • I have a public key whose fingerprint is B539 AD27 32DE F3BF 634C 730C DA54 F33A C13B F8B7

To claim this, I am signing this object:

@cyberjso
cyberjso / gist:c03387070e539ef7449f8a6b36b8fc43
Last active April 15, 2016 11:35
Applying nebula plugin
apply plugin: 'nebula.ospackage'
@cyberjso
cyberjso / gist:6646dd4f3f3a67bb7cf6bec8abd21b18
Created April 15, 2016 11:38
specifying nebula depdency
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.netflix.nebula:gradle-ospackage-plugin:3+"
}
}
@cyberjso
cyberjso / gist:ce8eac8e69ec97101ae2587794f03fb1
Created April 15, 2016 11:43
Configuring a Debian package - nebula-ospackage
task packDeb(type: Deb) {
packageName = project.name
version = project.version
os = LINUX
into '/opt/' + project.name
from(jar.outputs.files) {
into 'lib'
}
---
- hosts: localhost
roles:
- common
- service
package_name: os-package_1.0-SNAPSHOT_all.deb
---
- name: send package to target host
copy:
src={{package_name}}
dest=/tmp/{{package_name}}
mode=0777
- name: install service package
become: true
shell: "dpkg -i /tmp/{{package_name}}"
---
- name: os-package started
service: name=os-package state=started
ansible-pull -U git://github.com/cyberjso/ansible-pull.git
ansible-pull -U git://github.com/cyberjso/ansible-pull.git --tags=update_config