Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.playbook
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
slapos.playbook
Commits
a6ed496b
Commit
a6ed496b
authored
Apr 16, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added roles, group_vars and sample for debian setup.
parent
5e22ea70
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
8 deletions
+39
-8
group_vars/all
group_vars/all
+4
-0
roles/package/tasks/main.yml
roles/package/tasks/main.yml
+15
-0
roles/repository/tasks/main.yml
roles/repository/tasks/main.yml
+16
-0
site.yml
site.yml
+4
-8
No files found.
group_vars/all
0 → 100644
View file @
a6ed496b
---
base_open_build_url: http://download.opensuse.org/repositories/home:/VIFIBnexedi/
roles/package/tasks/main.yml
0 → 100644
View file @
a6ed496b
-
name
:
Install slapos-node on Debian
apt
:
name=slapos-node state=present update_cache=yes cache_valid_time=3600
when
:
ansible_os_family == "Debian"
-
name
:
Install re6stnet on Debian
apt
:
name=re6stnet state=present update_cache=yes cache_valid_time=3600
when
:
ansible_os_family == "Debian"
-
name
:
Install re6stnet on CentOS
yum
:
name=re6st-node state=present update_cache=yes cache_valid_time=3600
when
:
ansible_os_family == "RedHat"
-
name
:
Install slapos on CentOS
yum
:
name=slapos-node state=present update_cache=yes cache_valid_time=3600
when
:
ansible_os_family == "RedHat"
roles/repository/tasks/main.yml
0 → 100644
View file @
a6ed496b
-
name
:
Install Debian 7 repository key
apt_key
:
url={{ base_open_build_url }}/Debian_7.0/Release.key state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
-
name
:
Install Debian 6 repository key
apt_key
:
url={{ base_open_build_url }}/Debian_6.0/Release.key state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "6"
-
name
:
Install Debian 7 repository
apt_repository
:
repo='deb {{ base_open_build_url }}/Debian_7.0/ ./' state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
-
name
:
Install Debian 6 repository
apt_repository
:
repo='deb {{ base_open_build_url }}/Debian_6.0/ ./' state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "6"
site.yml
View file @
a6ed496b
-
name
:
a play that runs entirely on the ansible host
hosts
:
127.0.0.1
connection
:
local
tasks
:
-
name
:
Install slapos-node
apt
:
name=slapos-node state=present update_cache=yes cache_valid_time=3600
-
name
:
Install re6stnet
apt
:
name=re6stnet state=present update_cache=yes cache_valid_time=3600
roles
:
-
repository
-
package
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment