Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

Commit

Permalink
Merge pull request #196 from intercity/unattended-upgrades
Browse files Browse the repository at this point in the history
Add the unattended-upgrades recipe and set to false by default
  • Loading branch information
michiels committed Apr 30, 2015
2 parents 11b8cf7 + 63d1a69 commit 23c8d4a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file.
This project makes use of the [Sementic Versioning](http://semver.org/)

## 2.5.0 - 2015-04-30

### Added
- Added the "apt:unattended-upgrades" recipe in our Rails stacks so people can enable unattended upgrades.

## 2.4.0 - 2015-04-28

### Added
Expand Down
5 changes: 5 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
"users" => ["vagrant"]
}
},
"apt" => {
"unattended_upgrades" => {
"enabled" => true
}
},
"mysql" => {
"server_debian_password" => "a",
"server_repl_password" => "a",
Expand Down
5 changes: 5 additions & 0 deletions nodes/sample_host.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
]
}
},
"apt": {
"unattended_upgrades": {
"enabled": true
}
},
"ssh_deploy_keys": [
"<enter the contents of an id_rsa.pub here>"
],
Expand Down
3 changes: 2 additions & 1 deletion roles/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"recipe[git]",
"recipe[ssh_deploy_keys]",
"recipe[postfix]",
"recipe[rails::env_vars]"
"recipe[rails::env_vars]",
"recipe[apt::unattended-upgrades]"
)

default_attributes(
Expand Down
3 changes: 2 additions & 1 deletion roles/rails_passenger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"recipe[rails::env_vars]",
"recipe[git]",
"recipe[ssh_deploy_keys]",
"recipe[postfix]"
"recipe[postfix]",
"recipe[apt::unattended-upgrades]"
)

default_attributes(
Expand Down

0 comments on commit 23c8d4a

Please sign in to comment.