taperole 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/README.md +2 -14
- data/lib/tape/installer.rb +0 -15
- data/roles/nginx/tasks/main.yml +1 -1
- data/roles/unicorn_activate/tasks/main.yml +9 -14
- data/taperole.gemspec +1 -1
- data/templates/base/omnibox.example.yml +1 -1
- data/templates/static_html/omnibox.example.yml +1 -1
- data/vendor/ANXS.postgresql/.gitignore +9 -0
- data/vendor/ANXS.postgresql/.travis.yml +18 -0
- data/vendor/ANXS.postgresql/LICENSE +21 -0
- data/vendor/ANXS.postgresql/README.md +64 -0
- data/vendor/ANXS.postgresql/Vagrantfile +16 -0
- data/vendor/ANXS.postgresql/defaults/main.yml +616 -0
- data/vendor/ANXS.postgresql/handlers/main.yml +6 -0
- data/vendor/ANXS.postgresql/meta/.galaxy_install_info +1 -0
- data/vendor/ANXS.postgresql/meta/main.yml +17 -0
- data/vendor/ANXS.postgresql/tasks/configure.yml +58 -0
- data/vendor/ANXS.postgresql/tasks/databases.yml +67 -0
- data/vendor/ANXS.postgresql/tasks/extensions/contrib.yml +11 -0
- data/vendor/ANXS.postgresql/tasks/extensions/dev_headers.yml +10 -0
- data/vendor/ANXS.postgresql/tasks/extensions/postgis.yml +14 -0
- data/vendor/ANXS.postgresql/tasks/extensions.yml +8 -0
- data/vendor/ANXS.postgresql/tasks/install.yml +34 -0
- data/vendor/ANXS.postgresql/tasks/main.yml +23 -0
- data/vendor/ANXS.postgresql/tasks/monit.yml +6 -0
- data/vendor/ANXS.postgresql/tasks/users.yml +18 -0
- data/vendor/ANXS.postgresql/tasks/users_privileges.yml +16 -0
- data/vendor/ANXS.postgresql/templates/etc_monit_conf.d_postgresql.j2 +6 -0
- data/vendor/ANXS.postgresql/templates/pg_hba.conf.j2 +39 -0
- data/vendor/ANXS.postgresql/templates/postgresql.conf.j2 +446 -0
- data/vendor/ANXS.postgresql/test.yml +8 -0
- data/vendor/ANXS.postgresql/vagrant-inventory +2 -0
- data/vendor/ANXS.postgresql/vars/test.yml +10 -0
- data/vendor/bennojoy.memcached/README.md +49 -0
- data/vendor/bennojoy.memcached/defaults/main.yml +8 -0
- data/vendor/bennojoy.memcached/handlers/main.yml +3 -0
- data/vendor/bennojoy.memcached/meta/.galaxy_install_info +1 -0
- data/vendor/bennojoy.memcached/meta/main.yml +26 -0
- data/vendor/bennojoy.memcached/tasks/main.yml +30 -0
- data/vendor/bennojoy.memcached/templates/memcached_debian.j2 +49 -0
- data/vendor/bennojoy.memcached/templates/memcached_redhat.j2 +5 -0
- data/vendor/bennojoy.memcached/vars/main.yml +14 -0
- data/vendor/jnv.unattended-upgrades/.gitignore +1 -0
- data/vendor/jnv.unattended-upgrades/.travis.yml +20 -0
- data/vendor/jnv.unattended-upgrades/LICENSE +339 -0
- data/vendor/jnv.unattended-upgrades/README.md +105 -0
- data/vendor/jnv.unattended-upgrades/Vagrantfile +22 -0
- data/vendor/jnv.unattended-upgrades/ansible.cfg +3 -0
- data/vendor/jnv.unattended-upgrades/defaults/main.yml +55 -0
- data/vendor/jnv.unattended-upgrades/files/auto-upgrades +4 -0
- data/vendor/jnv.unattended-upgrades/handlers/main.yml +2 -0
- data/vendor/jnv.unattended-upgrades/meta/.galaxy_install_info +1 -0
- data/vendor/jnv.unattended-upgrades/meta/main.yml +38 -0
- data/vendor/jnv.unattended-upgrades/role.yml +4 -0
- data/vendor/jnv.unattended-upgrades/tasks/main.yml +19 -0
- data/vendor/jnv.unattended-upgrades/templates/unattended-upgrades.j2 +78 -0
- data/vendor/jnv.unattended-upgrades/vars/Debian.yml +3 -0
- data/vendor/jnv.unattended-upgrades/vars/Ubuntu.yml +3 -0
- data/vendor/leonelgalan.node/.gitignore +2 -0
- data/vendor/leonelgalan.node/.travis.yml +13 -0
- data/vendor/leonelgalan.node/LICENSE +21 -0
- data/vendor/leonelgalan.node/README.md +50 -0
- data/vendor/leonelgalan.node/Vagrantfile +16 -0
- data/vendor/leonelgalan.node/defaults/main.yml +2 -0
- data/vendor/leonelgalan.node/handlers/main.yml +2 -0
- data/vendor/leonelgalan.node/meta/.galaxy_install_info +1 -0
- data/vendor/leonelgalan.node/meta/main.yml +21 -0
- data/vendor/leonelgalan.node/requirements.yml +3 -0
- data/vendor/leonelgalan.node/site.yml +8 -0
- data/vendor/leonelgalan.node/tasks/main.yml +35 -0
- data/vendor/leonelgalan.node/vars/main.yml +2 -0
- data/vendor/lxhunter.apt/.gitignore +41 -0
- data/vendor/lxhunter.apt/.travis.yml +12 -0
- data/vendor/lxhunter.apt/README.md +105 -0
- data/vendor/lxhunter.apt/Vagrantfile +16 -0
- data/vendor/lxhunter.apt/defaults/main.yml +7 -0
- data/vendor/lxhunter.apt/meta/.galaxy_install_info +1 -0
- data/vendor/lxhunter.apt/meta/main.yml +13 -0
- data/vendor/lxhunter.apt/tasks/main.yml +38 -0
- data/vendor/lxhunter.apt/templates/apt_10general.j2 +4 -0
- data/vendor/lxhunter.apt/test.yml +5 -0
- data/vendor/nodesource.node/Dockerfile +16 -0
- data/vendor/nodesource.node/LICENSE.md +11 -0
- data/vendor/nodesource.node/README.md +46 -0
- data/vendor/nodesource.node/defaults/main.yml +3 -0
- data/vendor/nodesource.node/handlers/main.yml +2 -0
- data/vendor/nodesource.node/meta/.galaxy_install_info +1 -0
- data/vendor/nodesource.node/meta/main.yml +18 -0
- data/vendor/nodesource.node/role.yml +6 -0
- data/vendor/nodesource.node/tasks/main.yml +26 -0
- data/vendor/nodesource.node/templates/etc/apt/preferences.d/deb_nodesource_com_node.pref.2 +5 -0
- data/vendor/nodesource.node/tests/localhosts +2 -0
- data/vendor/nodesource.node/vars/main.yml +2 -0
- data/vendor/zzet.rbenv/.kitchen.yml +40 -0
- data/vendor/zzet.rbenv/.travis.yml +12 -0
- data/vendor/zzet.rbenv/README.md +100 -0
- data/vendor/zzet.rbenv/defaults/main.yml +20 -0
- data/vendor/zzet.rbenv/files/default-gems +1 -0
- data/vendor/zzet.rbenv/files/gemrc +4 -0
- data/vendor/zzet.rbenv/files/vars +1 -0
- data/vendor/zzet.rbenv/handlers/main.yml +5 -0
- data/vendor/zzet.rbenv/meta/.galaxy_install_info +1 -0
- data/vendor/zzet.rbenv/meta/main.yml +27 -0
- data/vendor/zzet.rbenv/role.yml +10 -0
- data/vendor/zzet.rbenv/tasks/apt_build_depends.yml +15 -0
- data/vendor/zzet.rbenv/tasks/homebrew_build_depends.yml +10 -0
- data/vendor/zzet.rbenv/tasks/main.yml +192 -0
- data/vendor/zzet.rbenv/tasks/pacman_build_depends.yml +2 -0
- data/vendor/zzet.rbenv/tasks/yum_build_depends.yml +15 -0
- data/vendor/zzet.rbenv/templates/rbenv.sh.j2 +11 -0
- data/vendor/zzet.rbenv/test/integration/default/serverspec/rbenv_spec.rb +26 -0
- data/vendor/zzet.rbenv/test/integration/helpers/serverspec/spec_helper.rb +10 -0
- data/vendor/zzet.rbenv/test/integration/site.yml +8 -0
- data/vendor/zzet.rbenv/vars/main.yml +1 -0
- data/vendor/zzet.rbenv/vars/system.yml +2 -0
- data/vendor/zzet.rbenv/vars/user.yml +2 -0
- metadata +111 -2
@@ -0,0 +1,78 @@
|
|
1
|
+
// Unattended-Upgrade::Origins-Pattern controls which packages are
|
2
|
+
// upgraded.
|
3
|
+
Unattended-Upgrade::Origins-Pattern {
|
4
|
+
{% if unattended_origins_patterns is defined %}
|
5
|
+
{% for origin in unattended_origins_patterns %}
|
6
|
+
"{{ origin }}";
|
7
|
+
{% endfor %}
|
8
|
+
{% else %}
|
9
|
+
{% for origin in __unattended_origins_patterns %}
|
10
|
+
"{{ origin }}";
|
11
|
+
{% endfor %}
|
12
|
+
{% endif %}
|
13
|
+
};
|
14
|
+
|
15
|
+
// List of packages to not update (regexp are supported)
|
16
|
+
Unattended-Upgrade::Package-Blacklist {
|
17
|
+
{% for package in unattended_package_blacklist %}
|
18
|
+
"{{package}}";
|
19
|
+
{% endfor %}
|
20
|
+
};
|
21
|
+
|
22
|
+
{% if not unattended_autofix_interrupted_dpkg %}
|
23
|
+
// This option allows you to control if on a unclean dpkg exit
|
24
|
+
// unattended-upgrades will automatically run
|
25
|
+
// dpkg --force-confold --configure -a
|
26
|
+
// The default is true, to ensure updates keep getting installed
|
27
|
+
Unattended-Upgrade::AutoFixInterruptedDpkg "false";
|
28
|
+
{% endif %}
|
29
|
+
|
30
|
+
{% if unattended_minimal_steps %}
|
31
|
+
// Split the upgrade into the smallest possible chunks so that
|
32
|
+
// they can be interrupted with SIGUSR1. This makes the upgrade
|
33
|
+
// a bit slower but it has the benefit that shutdown while a upgrade
|
34
|
+
// is running is possible (with a small delay)
|
35
|
+
Unattended-Upgrade::MinimalSteps "true";
|
36
|
+
{% endif %}
|
37
|
+
|
38
|
+
{% if unattended_install_on_shutdown %}
|
39
|
+
// Install all unattended-upgrades when the machine is shuting down
|
40
|
+
// instead of doing it in the background while the machine is running
|
41
|
+
// This will (obviously) make shutdown slower
|
42
|
+
Unattended-Upgrade::InstallOnShutdown "true";
|
43
|
+
{% endif %}
|
44
|
+
|
45
|
+
{% if unattended_mail %}
|
46
|
+
// Send email to this address for problems or packages upgrades
|
47
|
+
// If empty or unset then no email is sent, make sure that you
|
48
|
+
// have a working mail setup on your system. A package that provides
|
49
|
+
// 'mailx' must be installed.
|
50
|
+
Unattended-Upgrade::Mail "{{unattended_mail}}";
|
51
|
+
{% endif %}
|
52
|
+
|
53
|
+
{% if unattended_mail_only_on_error %}
|
54
|
+
// Set this value to "true" to get emails only on errors. Default
|
55
|
+
// is to always send a mail if Unattended-Upgrade::Mail is set
|
56
|
+
Unattended-Upgrade::MailOnlyOnError "true";
|
57
|
+
{% endif %}
|
58
|
+
|
59
|
+
{% if unattended_remove_unused_dependencies %}
|
60
|
+
// Do automatic removal of new unused dependencies after the upgrade
|
61
|
+
// (equivalent to apt-get autoremove)
|
62
|
+
Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
63
|
+
{% endif %}
|
64
|
+
|
65
|
+
{% if unattended_automatic_reboot %}
|
66
|
+
// Automatically reboot *WITHOUT CONFIRMATION* if a
|
67
|
+
// the file /var/run/reboot-required is found after the upgrade
|
68
|
+
Unattended-Upgrade::Automatic-Reboot "true";
|
69
|
+
{% endif %}
|
70
|
+
|
71
|
+
// If automatic reboot is enabled and needed, reboot at the specific
|
72
|
+
// time instead of immediately
|
73
|
+
// Default: "now"
|
74
|
+
//Unattended-Upgrade::Automatic-Reboot-Time "02:00";
|
75
|
+
|
76
|
+
// Use apt bandwidth limit feature, this example limits the download
|
77
|
+
// speed to 70kb/sec
|
78
|
+
//Acquire::http::Dl-Limit "70";
|
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
language: python
|
3
|
+
python: 2.7
|
4
|
+
before_install:
|
5
|
+
- sudo apt-get update -qq
|
6
|
+
- sudo apt-get install -qq python-apt python-pycurl
|
7
|
+
install:
|
8
|
+
- pip install ansible
|
9
|
+
script:
|
10
|
+
- echo localhost > inventory
|
11
|
+
- ansible-galaxy install --role-file=requirements.yml --roles-path=roles/ --force
|
12
|
+
- ansible-playbook --syntax-check -i inventory site.yml
|
13
|
+
- ansible-playbook -i inventory site.yml --connection=local --sudo
|
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Leonel Galan
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# leonelgalan.node [![Build Status](https://travis-ci.org/leonelgalan/ansible-node.svg)](https://travis-ci.org/leonelgalan/ansible-node)
|
2
|
+
|
3
|
+
Installs **latest** nodejs, the **latest** npm, and desired packages. At the time of writing (January 26, 2015):
|
4
|
+
|
5
|
+
* Node.js v0.10.36
|
6
|
+
* npm 2.3.0
|
7
|
+
|
8
|
+
# Role Variables
|
9
|
+
|
10
|
+
Default variables are:
|
11
|
+
|
12
|
+
```yml
|
13
|
+
---
|
14
|
+
npm_packages: []
|
15
|
+
```
|
16
|
+
|
17
|
+
## Dependencies
|
18
|
+
|
19
|
+
* nodesource.node
|
20
|
+
|
21
|
+
```shell
|
22
|
+
ansible-galaxy install --role-file=requirements.yml --force
|
23
|
+
```
|
24
|
+
|
25
|
+
## Example Playbook
|
26
|
+
```yml
|
27
|
+
- hosts: all
|
28
|
+
|
29
|
+
roles:
|
30
|
+
- role: leonelgalan.node
|
31
|
+
npm_packages:
|
32
|
+
- name: gulp
|
33
|
+
- name: bower
|
34
|
+
version: 1.3.12
|
35
|
+
- path: ../local/package
|
36
|
+
```
|
37
|
+
|
38
|
+
## Vagrant
|
39
|
+
|
40
|
+
```shell
|
41
|
+
vagrant up
|
42
|
+
```
|
43
|
+
|
44
|
+
## License
|
45
|
+
|
46
|
+
_leonelgalan.node_ is released under the [MIT License](http://opensource.org/licenses/MIT ).
|
47
|
+
|
48
|
+
## Author Information
|
49
|
+
|
50
|
+
Leonel Galán (<leonel@smashingboxes.com>)
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
Vagrant.configure(2) do |config|
|
5
|
+
config.vm.box = 'ubuntu/trusty64'
|
6
|
+
|
7
|
+
config.vm.provision :ansible do |ansible|
|
8
|
+
ansible.playbook = 'site.yml'
|
9
|
+
ansible.extra_vars = {
|
10
|
+
npm_packages: [
|
11
|
+
{name: 'coffee-script'},
|
12
|
+
{name: 'bower'}
|
13
|
+
]
|
14
|
+
}
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
{install_date: 'Fri Mar 20 18:33:17 2015', version: '0.2'}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
galaxy_info:
|
3
|
+
author: Leonel Galan
|
4
|
+
description: "Installs **latest** nodejs and the **latest** npm (https://github.com/npm/npm#fancy-install-unix)"
|
5
|
+
company: Smashing Boxes
|
6
|
+
license: MIT
|
7
|
+
min_ansible_version: 1.8
|
8
|
+
version: 0.2
|
9
|
+
|
10
|
+
platforms:
|
11
|
+
- name: Ubuntu
|
12
|
+
versions:
|
13
|
+
- precise
|
14
|
+
- trusty
|
15
|
+
|
16
|
+
categories:
|
17
|
+
- development
|
18
|
+
- system
|
19
|
+
|
20
|
+
dependencies:
|
21
|
+
- role: nodesource.node
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
- name: Ensure the latest node is installed
|
3
|
+
apt: name=nodejs state=latest
|
4
|
+
tags:
|
5
|
+
- node
|
6
|
+
|
7
|
+
- name: Check if npm 2.x is installed on the system.
|
8
|
+
shell: npm -v
|
9
|
+
register: npm_version
|
10
|
+
changed_when: false
|
11
|
+
ignore_errors: yes
|
12
|
+
tags:
|
13
|
+
- node
|
14
|
+
- npm
|
15
|
+
|
16
|
+
- name: Install curl
|
17
|
+
apt: name=curl state=present
|
18
|
+
when: npm_version.stdout | version_compare('2', '<')
|
19
|
+
tags:
|
20
|
+
- node
|
21
|
+
- npm
|
22
|
+
|
23
|
+
- name: Install npm
|
24
|
+
shell: $SHELL -lc "curl -L https://npmjs.com/install.sh | sh"
|
25
|
+
when: npm_version.stdout | version_compare('2', '<')
|
26
|
+
tags:
|
27
|
+
- node
|
28
|
+
- npm
|
29
|
+
|
30
|
+
- name: Install global npm_packages
|
31
|
+
npm: name={{ item.name | default(omit) }} path={{ item.path | default(omit) }} version={{ item.version | default(omit) }} global=yes state={{ item.state | default(omit) }}
|
32
|
+
with_items: npm_packages
|
33
|
+
tags:
|
34
|
+
- node
|
35
|
+
- npm
|
@@ -0,0 +1,41 @@
|
|
1
|
+
lib-cov
|
2
|
+
*.seed
|
3
|
+
*.log
|
4
|
+
*.csv
|
5
|
+
*.dat
|
6
|
+
*.out
|
7
|
+
*.pid
|
8
|
+
*.gz
|
9
|
+
|
10
|
+
pids
|
11
|
+
logs
|
12
|
+
results
|
13
|
+
|
14
|
+
npm-debug.log
|
15
|
+
node_modules
|
16
|
+
|
17
|
+
# Logs and databases #
|
18
|
+
######################
|
19
|
+
*.log
|
20
|
+
*.sql
|
21
|
+
*.sqlite
|
22
|
+
|
23
|
+
# OS generated files #
|
24
|
+
######################
|
25
|
+
.DS_Store
|
26
|
+
.DS_Store?
|
27
|
+
._*
|
28
|
+
.Spotlight-V100
|
29
|
+
.Trashes
|
30
|
+
ehthumbs.db
|
31
|
+
Thumbs.db
|
32
|
+
|
33
|
+
# editor generated files #
|
34
|
+
######################
|
35
|
+
.idea
|
36
|
+
|
37
|
+
# vagrant generated files #
|
38
|
+
######################
|
39
|
+
.vagrant
|
40
|
+
vagrant_*
|
41
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
language: python
|
3
|
+
python: "2.7"
|
4
|
+
before_install:
|
5
|
+
- sudo apt-get update -qq
|
6
|
+
- sudo apt-get install -qq python-apt python-pycurl
|
7
|
+
install:
|
8
|
+
- pip install ansible
|
9
|
+
script:
|
10
|
+
- echo localhost > inventory
|
11
|
+
- ansible-playbook --syntax-check -i inventory test.yml
|
12
|
+
- ansible-playbook -i inventory test.yml --connection=local --sudo
|
@@ -0,0 +1,105 @@
|
|
1
|
+
Description
|
2
|
+
===========
|
3
|
+
|
4
|
+
[![Build Status](https://travis-ci.org/lxhunter/apt.png?branch=master)](https://travis-ci.org/lxhunter/apt)
|
5
|
+
|
6
|
+
`apt` is an ansible role which was built to help you with:
|
7
|
+
|
8
|
+
* updating the apt-cache
|
9
|
+
* control if you want `recommended` packages
|
10
|
+
* control if you want `suggested` packages
|
11
|
+
* optionally install additional packages
|
12
|
+
* optionally configure unattended upgrades
|
13
|
+
|
14
|
+
I use the role as part of my common setup.
|
15
|
+
|
16
|
+
I hope it helps!
|
17
|
+
|
18
|
+
Testing
|
19
|
+
===========
|
20
|
+
|
21
|
+
For your convience I also added vagrant to some testing, please find attached a vagrant file for ubuntu1310-i386
|
22
|
+
|
23
|
+
|
24
|
+
```lang
|
25
|
+
$ ansible-galaxy install lxhunter.apt
|
26
|
+
$ cd /usr/local/etc/ansible/roles/lxhunter.apt
|
27
|
+
$ vagrant up
|
28
|
+
```
|
29
|
+
|
30
|
+
If you need more base images have look at the wonderful project:
|
31
|
+
* [basebox-packer](https://github.com/misheska/basebox-packer)
|
32
|
+
|
33
|
+
Requirements
|
34
|
+
===========
|
35
|
+
|
36
|
+
This role requires Ansible 1.4 or higher.
|
37
|
+
|
38
|
+
Tested and supported:
|
39
|
+
* Ubuntu saucy
|
40
|
+
|
41
|
+
Optional Variables
|
42
|
+
===========
|
43
|
+
|
44
|
+
These are the turning knobs and their default values, if you like to change em, just go ahead.
|
45
|
+
|
46
|
+
```lang
|
47
|
+
# group_vars/all.yml
|
48
|
+
|
49
|
+
# Sets the amount of time the cache is valid (5m)
|
50
|
+
apt_cache_valid_time: 3600
|
51
|
+
# apt by default does not specify whether or not “recommended” packages should be installed.
|
52
|
+
apt_install_recommends: false
|
53
|
+
# apt by default does not specify whether or not “suggested” packages should be installed.
|
54
|
+
apt_install_suggests: false
|
55
|
+
|
56
|
+
# Optional: Array of additional packages
|
57
|
+
apt_install_packages: []
|
58
|
+
|
59
|
+
# Optional: attributes for unattended upgrades config
|
60
|
+
apt_unattended_upgrades_config:
|
61
|
+
- { key: 'APT::Periodic::Update-Package-Lists', value: '1' }
|
62
|
+
- { key: 'APT::Periodic::Download-Upgradeable-Packages', value: '1' }
|
63
|
+
- { key: 'APT::Periodic::AutocleanInterval', value: '7' }
|
64
|
+
- { key: 'APT::Periodic::Unattended-Upgrade', value: '1' }
|
65
|
+
```
|
66
|
+
|
67
|
+
Examples
|
68
|
+
===========
|
69
|
+
|
70
|
+
Like so you can include the role in your setup:
|
71
|
+
|
72
|
+
```lang
|
73
|
+
# playbook.yml
|
74
|
+
|
75
|
+
- { role: lxhunter.apt }
|
76
|
+
```
|
77
|
+
|
78
|
+
Quote
|
79
|
+
==========
|
80
|
+
"I want to know God's thoughts; the rest are details."
|
81
|
+
- Albert Einstein
|
82
|
+
|
83
|
+
Contribute
|
84
|
+
==========
|
85
|
+
|
86
|
+
[Tutorial](http://kbroman.github.io/github_tutorial/pages/fork.html)
|
87
|
+
|
88
|
+
License and Author
|
89
|
+
==================
|
90
|
+
|
91
|
+
Author:: [Alexander Jäger](https://github.com/lxhunter)
|
92
|
+
|
93
|
+
Copyright 2014
|
94
|
+
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
96
|
+
you may not use this file except in compliance with the License.
|
97
|
+
You may obtain a copy of the License at
|
98
|
+
|
99
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
100
|
+
|
101
|
+
Unless required by applicable law or agreed to in writing, software
|
102
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
103
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
104
|
+
See the License for the specific language governing permissions and
|
105
|
+
limitations under the License.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
Vagrant.configure("2") do |config|
|
2
|
+
|
3
|
+
config.vm.define 'ubuntu1310-i386' do |instance|
|
4
|
+
instance.vm.box = 'ubuntu1310-i386'
|
5
|
+
#instance.vm.box_url = 'https://dl.dropboxusercontent.com/s/etextqjf5btefbq/ubuntu1310-i386.box'
|
6
|
+
|
7
|
+
config.vm.provision "ansible" do |ansible|
|
8
|
+
ansible.playbook = "test.yml"
|
9
|
+
ansible.sudo_user = 'root'
|
10
|
+
ansible.sudo = true
|
11
|
+
# ansible.inventory_path = "provisioning/hosts-vagrant"
|
12
|
+
# ansible.verbose = 'vvvv'
|
13
|
+
# ansible.raw_arguments = ['--user', 'vagrant']
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
# Sets the amount of time the cache is valid (5m)
|
3
|
+
apt_cache_valid_time: 3600
|
4
|
+
# apt by default does not specify whether or not “recommended” packages should be installed.
|
5
|
+
apt_install_recommends: false
|
6
|
+
# apt by default does not specify whether or not “suggested” packages should be installed.
|
7
|
+
apt_install_suggests: false
|
@@ -0,0 +1 @@
|
|
1
|
+
{install_date: 'Fri Mar 20 18:33:16 2015', version: master}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
- name: Update caches
|
3
|
+
apt:
|
4
|
+
update_cache: yes
|
5
|
+
cache_valid_time: "{{ apt_cache_valid_time }}"
|
6
|
+
|
7
|
+
- name: Create general configuration file for APT
|
8
|
+
template:
|
9
|
+
src: apt_10general.j2
|
10
|
+
dest: /etc/apt/apt.conf.d/10general
|
11
|
+
owner: root
|
12
|
+
group: root
|
13
|
+
mode: 0644
|
14
|
+
|
15
|
+
- name: Install apt packages
|
16
|
+
apt:
|
17
|
+
pkg: "{{item}}"
|
18
|
+
state: present
|
19
|
+
with_items:
|
20
|
+
[python-apt, unattended-upgrades]
|
21
|
+
|
22
|
+
- name: Install packages
|
23
|
+
apt:
|
24
|
+
pkg: "{{item}}"
|
25
|
+
state: present
|
26
|
+
with_items:
|
27
|
+
apt_install_packages
|
28
|
+
when: apt_install_packages is defined
|
29
|
+
|
30
|
+
- name: Update parameters
|
31
|
+
lineinfile:
|
32
|
+
dest: /etc/apt/apt.conf.d/10periodic
|
33
|
+
state: present
|
34
|
+
regexp: "^{{ item.key }}"
|
35
|
+
line: "{{ item.key }} \"{{ item.value }}\";"
|
36
|
+
insertafter: EOF
|
37
|
+
with_items: apt_unattended_upgrades_config
|
38
|
+
when: apt_unattended_upgrades_config is defined
|
@@ -0,0 +1,16 @@
|
|
1
|
+
FROM ubuntu:trusty
|
2
|
+
MAINTAINER Mark Wolfe <mark@wolfe.id.au>
|
3
|
+
|
4
|
+
RUN apt-get update
|
5
|
+
RUN apt-get install -y --force-yes \
|
6
|
+
python-pycurl \
|
7
|
+
python-apt \
|
8
|
+
ansible \
|
9
|
+
lsb-release
|
10
|
+
|
11
|
+
ENV WORKDIR /build/ansible-nodejs
|
12
|
+
ADD . /build/ansible-nodejs
|
13
|
+
ADD ./tests/localhosts /etc/ansible/hosts
|
14
|
+
|
15
|
+
RUN ansible-playbook $WORKDIR/role.yml -c local
|
16
|
+
RUN node -v
|
@@ -0,0 +1,11 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
=====================
|
3
|
+
|
4
|
+
Copyright (c) 2014 NodeSource and Mark Wolfe
|
5
|
+
--------------------------------------------
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
8
|
+
|
9
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
10
|
+
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# ansible-nodejs-role
|
2
|
+
|
3
|
+
<a href="https://nodesource.com"><img src="https://nodesource.com/assets/logo.svg" height="10%" width="10%"></a>
|
4
|
+
|
5
|
+
This is an Ansible role which adds the the NodeSource APT repository and installs Node.js.
|
6
|
+
|
7
|
+
Currently this role supports the following operating systems and releases.
|
8
|
+
|
9
|
+
* **Ubuntu 12.04 LTS** (Precise Pangolin)
|
10
|
+
* **Ubuntu 14.04 LTS** (Trusty Tahr)
|
11
|
+
|
12
|
+
## Usage
|
13
|
+
|
14
|
+
Install the playbook via Ansible Galaxy:
|
15
|
+
|
16
|
+
```text
|
17
|
+
$ ansible-galaxy install nodesource.node
|
18
|
+
```
|
19
|
+
|
20
|
+
Then configure it as follows:
|
21
|
+
|
22
|
+
```yaml
|
23
|
+
- hosts: servers
|
24
|
+
roles:
|
25
|
+
- nodesource.node
|
26
|
+
```
|
27
|
+
|
28
|
+
## Role Variables
|
29
|
+
|
30
|
+
- `nodejs_nodesource_pin_priority`: Pin-Priority of the NodeSource repository (default: `500`).
|
31
|
+
|
32
|
+
## Testing
|
33
|
+
|
34
|
+
To test this role using Docker:
|
35
|
+
|
36
|
+
```
|
37
|
+
$ docker build .
|
38
|
+
```
|
39
|
+
|
40
|
+
## Author
|
41
|
+
|
42
|
+
Mark Wolfe <mark@wolfe.id.au>
|
43
|
+
|
44
|
+
## License
|
45
|
+
|
46
|
+
This code is Copyright (c) 2014 NodeSource and Mark Wolfe and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.
|
@@ -0,0 +1 @@
|
|
1
|
+
{install_date: 'Tue Feb 3 20:41:07 2015', version: master}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
galaxy_info:
|
3
|
+
author: Mark Wolfe
|
4
|
+
description: Installs the NodeSource Node.js binary packages
|
5
|
+
company: NodeSource
|
6
|
+
license: MIT
|
7
|
+
min_ansible_version: 1.2
|
8
|
+
platforms:
|
9
|
+
- name: Ubuntu
|
10
|
+
versions:
|
11
|
+
- precise
|
12
|
+
- trusty
|
13
|
+
categories:
|
14
|
+
- development
|
15
|
+
- networking
|
16
|
+
- packaging
|
17
|
+
- web
|
18
|
+
dependencies: []
|