Skip to content

Commit fa01783

Browse files
committed
Initial working version
1 parent 79e005a commit fa01783

File tree

16 files changed

+301
-0
lines changed

16 files changed

+301
-0
lines changed

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# OS generated files #
2+
######################
3+
.DS_Store
4+
.DS_Store?
5+
._*
6+
.Spotlight-V100
7+
.Trashes
8+
Icon?
9+
ehthumbs.db
10+
Thumbs.db
11+
12+
# IDE files #
13+
#################
14+
/.settings
15+
/.buildpath
16+
/.project
17+
/nbproject
18+
*.komodoproject
19+
*.kpf
20+
/.idea
21+
22+
# Vagrant files #
23+
.virtualbox/
24+
.vagrant/
25+
vagrant_ansible_inventory_*
26+
ansible.cfg
27+
28+
# Other files #
29+
###############
30+
!empty

.travis.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
sudo: required
3+
dist: trusty
4+
5+
language: python
6+
python: "2.7"
7+
8+
env:
9+
- ANSIBLE_VERSION=latest
10+
- ANSIBLE_VERSION=2.0.2.0
11+
- ANSIBLE_VERSION=2.0.1.0
12+
- ANSIBLE_VERSION=2.0.0.2
13+
- ANSIBLE_VERSION=2.0.0.1
14+
- ANSIBLE_VERSION=2.0.0.0
15+
- ANSIBLE_VERSION=1.9.6
16+
- ANSIBLE_VERSION=1.9.5
17+
- ANSIBLE_VERSION=1.9.4
18+
- ANSIBLE_VERSION=1.9.3
19+
- ANSIBLE_VERSION=1.9.2
20+
- ANSIBLE_VERSION=1.9.1
21+
- ANSIBLE_VERSION=1.9.0.1
22+
- ANSIBLE_VERSION=1.8.4
23+
- ANSIBLE_VERSION=1.8.3
24+
- ANSIBLE_VERSION=1.8.2
25+
- ANSIBLE_VERSION=1.8.1
26+
- ANSIBLE_VERSION=1.8
27+
- ANSIBLE_VERSION=1.7.2
28+
- ANSIBLE_VERSION=1.7.1
29+
- ANSIBLE_VERSION=1.7
30+
- ANSIBLE_VERSION=1.6.9
31+
- ANSIBLE_VERSION=1.6.8
32+
- ANSIBLE_VERSION=1.6.7
33+
- ANSIBLE_VERSION=1.6.6
34+
- ANSIBLE_VERSION=1.6.5
35+
- ANSIBLE_VERSION=1.6.4
36+
- ANSIBLE_VERSION=1.6.3
37+
- ANSIBLE_VERSION=1.6.2
38+
- ANSIBLE_VERSION=1.6.10
39+
- ANSIBLE_VERSION=1.6.1
40+
- ANSIBLE_VERSION=1.6
41+
42+
branches:
43+
only:
44+
- master
45+
46+
before_install:
47+
- sudo apt-get update -qq
48+
49+
install:
50+
# Install Ansible.
51+
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install --no-binary ansible ansible; else pip install --no-binary ansible ansible==$ANSIBLE_VERSION; fi
52+
53+
script:
54+
# Check the role/playbook's syntax.
55+
- ansible-playbook -i tests/inventory tests/test.yml --syntax-check
56+
57+
# Run the role/playbook with ansible-playbook.
58+
- ansible-playbook -i tests/inventory tests/test.yml -vvvv
59+
60+
# Run the role/playbook again, checking to make sure it's idempotent.
61+
- >
62+
ansible-playbook -i tests/inventory tests/test.yml
63+
| grep -q 'changed=0.*failed=0'
64+
&& (echo 'Idempotence test: pass' && exit 0)
65+
|| (echo 'Idempotence test: fail' && exit 1)
66+
67+
notifications:
68+
email: false
69+
hipchat:
70+
rooms:
71+
secure: bJ9FyaQ0RTdtpsHt5k0Kxi26xPkpO6sMoRI327B125P48ZkmfPEXklTarJivatJDCNYWgzNXULeDtOf9oLLGM1N4oJy9/hxyK1T0Df11g/QrHkfI5VNlsG2/Q5T7jhEHLL4maHAWL0bzpgzTQm440GVXF3N8jYlajS0nnGIwVOnv3PjXhScWqZr8cVeOZIIrr08RQiA7+Ts1YLdEJ/5i4pPxTmsE+20BtZYFbtLd5j7WXl6CpnUM5yyVl4DNflPxroyv0hFlxejbVilutT3RCZZ27tsO8/+NPxmIfuoSxCdCfFx4ZlqWutn7taMEi5Z9WZ2RCO4+97bnm4ceTBS1DjTUfUSls9Wb0k2IpO+ZmrluD8U/MAONegVRB9G/nA+5FEpOmMhMHNYegmt7S0av8kQSCvwrretHURM5V0fSL3VbRDANeFVRetltjUWMYfMkXpXh0WljUmuRQE7uzOPlbkel5hBR4LNc6I79ct7Me73wveNuEi1QEOYLy4LBBSPpGKIazHyHJ1+q8ap8AuzrMZ+IdHX1/UgDBTy0njo993RHxIOw1rHy+dp1/o3nd4Dxw/V9GABm2iO5cFQ46mcsT681g/fDT6nZ0JlO8kwgoLYjG5EZadVfTqb71KifMgum+SVVkrYWls+ZVL/wUbhjeCj5UGrdGThUqrN5DrfcsUM=
72+
webhooks: https://galaxy.ansible.com/api/v1/notifications/

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## insync
2+
3+
[![Build Status](https://travis-ci.org/Oefenweb/ansible-insync.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-insync) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-insync-blue.svg)](https://galaxy.ansible.com/Oefenweb/insync/)
4+
5+
Set up [Insync](https://www.insynchq.com) in Debian-like systems.
6+
7+
#### Requirements
8+
9+
None
10+
11+
#### Variables
12+
13+
None
14+
15+
## Dependencies
16+
17+
None
18+
19+
#### Example
20+
21+
```yaml
22+
---
23+
- hosts: all
24+
roles:
25+
- insync
26+
```
27+
28+
#### License
29+
30+
MIT
31+
32+
#### Author Information
33+
34+
Mischa ter Smitten
35+
36+
#### Feedback, bug-reports, requests, ...
37+
38+
Are [welcome](https://github.com/Oefenweb/ansible-insync/issues)!

Vagrantfile

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby ts=2 sw=2 tw=0 et :
3+
4+
role = File.basename(File.expand_path(File.dirname(__FILE__)))
5+
6+
boxes = [
7+
{
8+
:name => "ubuntu-1204",
9+
:box => "opscode-ubuntu-12.04",
10+
:url => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box",
11+
:ip => '10.0.0.11',
12+
:cpu => "50",
13+
:ram => "256"
14+
},
15+
{
16+
:name => "ubuntu-1404",
17+
:box => "opscode-ubuntu-14.04",
18+
:url => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box",
19+
:ip => '10.0.0.12',
20+
:cpu => "50",
21+
:ram => "256"
22+
},
23+
{
24+
:name => "ubuntu-1604",
25+
:box => "opscode-ubuntu-16.04",
26+
:url => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-16.04_chef-provisionerless.box",
27+
:ip => '10.0.0.13',
28+
:cpu => "50",
29+
:ram => "256"
30+
},
31+
{
32+
:name => "debian-710",
33+
:box => "opscode-debian-7.10",
34+
:url => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_debian-7.10_chef-provisionerless.box",
35+
:ip => '10.0.0.14',
36+
:cpu => "50",
37+
:ram => "256"
38+
},
39+
{
40+
:name => "debian-84",
41+
:box => "opscode-debian-8.4",
42+
:url => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_debian-8.4_chef-provisionerless.box",
43+
:ip => '10.0.0.15',
44+
:cpu => "50",
45+
:ram => "256"
46+
},
47+
]
48+
49+
Vagrant.configure("2") do |config|
50+
boxes.each do |box|
51+
config.vm.define box[:name] do |vms|
52+
vms.vm.box = box[:box]
53+
vms.vm.box_url = box[:url]
54+
vms.vm.hostname = "ansible-#{role}-#{box[:name]}"
55+
56+
vms.vm.provider "virtualbox" do |v|
57+
v.customize ["modifyvm", :id, "--cpuexecutioncap", box[:cpu]]
58+
v.customize ["modifyvm", :id, "--memory", box[:ram]]
59+
end
60+
61+
vms.vm.network :private_network, ip: box[:ip]
62+
63+
vms.vm.provision :ansible do |ansible|
64+
ansible.playbook = "tests/vagrant.yml"
65+
ansible.verbose = "vv"
66+
end
67+
end
68+
end
69+
end

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# defaults file for insync
2+
---

files/empty

Whitespace-only changes.

handlers/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# handlers file for insync
2+
---

meta/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# meta file for insync
2+
---
3+
galaxy_info:
4+
author: Mischa ter Smitten
5+
company: Oefenweb.nl B.V.
6+
description: Set up Insync in Debian-like systems
7+
license: MIT
8+
min_ansible_version: 1.6
9+
platforms:
10+
- name: Ubuntu
11+
versions:
12+
- precise
13+
- trusty
14+
- xenial
15+
- name: Debian
16+
versions:
17+
- wheezy
18+
- jessie
19+
galaxy_tags:
20+
- development
21+
- system
22+
- networking
23+
- sync
24+
dependencies: []

tasks/install.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# tasks file for insync
2+
---
3+
- name: install dependencies
4+
apt:
5+
name: "{{ item }}"
6+
state: latest
7+
with_items: "{{ insync_dependencies }}"
8+
tags:
9+
- insync-install-dependencies

tasks/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# tasks file for insync
2+
---
3+
- include: repository.yml
4+
tags:
5+
- configuration
6+
- insync
7+
- insync-repository
8+
9+
- include: install.yml
10+
tags:
11+
- configuration
12+
- insync
13+
- insync-install

0 commit comments

Comments
 (0)