From fe1df5a28c6784533fb25e2e04ebcc921c0cf176 Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Sat, 14 Mar 2015 00:37:24 +0100 Subject: [PATCH] Add test with all variables set --- tests/Vagrantfile | 2 +- tests/test-full.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 tests/test-full.yml diff --git a/tests/Vagrantfile b/tests/Vagrantfile index aea4ad7..2b18959 100644 --- a/tests/Vagrantfile +++ b/tests/Vagrantfile @@ -10,7 +10,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = 'centos70-nocm' config.vm.define HOST_NAME do |node| node.vm.provision 'ansible' do |ansible| - ansible.playbook = 'test.yml' + ansible.playbook = 'test-full.yml' end end end diff --git a/tests/test-full.yml b/tests/test-full.yml new file mode 100644 index 0000000..ed9c6c3 --- /dev/null +++ b/tests/test-full.yml @@ -0,0 +1,40 @@ +--- +- hosts: all + sudo: true + vars: + samba_netbios_name: SAMBA_TEST + samba_server_string: 'Welcome to the test file server' + samba_workgroup: TESTGROUP + + samba_load_homes: yes + samba_load_printers: yes + + samba_log: /var/log/samba.log + samba_log_size: 60000 + + samba_map_to_guest: Never + samba_users: + - name: vagrant + password: vagrant + + samba_shares_root: /srv/samba + samba_shares: + - name: restrictedshare + - name: privateshare + comment: 'Only readable/writeable by vagrant' + write_list: vagrant + force_group: vagrant + - name: protectedshare + public: yes + comment: 'Public, but only writeable by vagrant' + write_list: vagrant + force_group: vagrant + - name: publicshare + comment: 'Public share, writeable by all members of group ‘users’' + public: yes + write_list: +users + force_group: users + setype: public_content_t + samba_create_varwww_symlinks: yes + roles: + - samba