- name: subversion
run_list:
- recipe[subversion::default]
+ - name: supybot
+ run_list:
+ - recipe[supybot::default]
- name: switch2osm
run_list:
- recipe[switch2osm::default]
- name: "Test Kitchen (subversion)"
script:
- bundle exec kitchen test subversion-ubuntu-1804
+ - name: "Test Kitchen (supybot)"
+ script:
+ - bundle exec kitchen test supybot-ubuntu-1804
- name: "Test Kitchen (switch2osm)"
script:
- bundle exec kitchen test switch2osm-ubuntu-1804
--- /dev/null
+default[:accounts][:users][:supybot][:status] = :role
version "1.0.0"
supports "ubuntu"
+depends "accounts"
depends "systemd"
# limitations under the License.
#
+include_recipe "accounts"
+
users = data_bag_item("supybot", "users")
passwords = data_bag_item("supybot", "passwords")
name "supybot"
description "Role applied to all supybot servers"
-default_attributes(
- :accounts => {
- :users => {
- :supybot => { :status => :role }
- }
- }
-)
-
run_list(
"recipe[supybot]"
)
--- /dev/null
+{
+ "id": "supybot",
+ "uid": "517",
+ "comment": "Supybot"
+}
--- /dev/null
+{
+ "id": "passwords",
+ "nickserv": "nickserv"
+}
--- /dev/null
+{
+ "id": "users",
+ "Firefishy": "Firefishy"
+}
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("supybot") do
+ it { should be_installed }
+end
+
+describe service("supybot") do
+ it { should be_enabled }
+ it { should be_running }
+end