Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-playbook
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Maruyama Takayuki
gitlab-playbook
Commits
f7bf4bf2
Commit
f7bf4bf2
authored
Mar 04, 2016
by
Maruyama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yamlの書き方を統一
parent
ebf3151f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
67 additions
and
21 deletions
+67
-21
roles/common/develop-tools/tasks/main.yml
+1
-1
roles/git/tasks/main.yml
+4
-2
roles/gitlab/tasks/main.yml
+11
-3
roles/go/tasks/main.yml
+4
-1
roles/postgresql/tasks/main.yml
+23
-7
roles/redis/tasks/main.yml
+19
-5
roles/ruby/tasks/main.yml
+4
-1
site.yml
+1
-1
No files found.
roles/common/develop-tools/tasks/main.yml
View file @
f7bf4bf2
---
-
name
:
install development tools
yum
:
name="@Development tools" state=present
become
:
yes
roles/git/tasks/main.yml
View file @
f7bf4bf2
---
-
name
:
download and unarchive git-2.4.3
unarchive
:
src=https://www.kernel.org/pub/software/scm/git/git-2.4.3.tar.gx dest=/tmp/
unarchive
:
src
:
https://www.kernel.org/pub/software/scm/git/git-2.4.3.tar.gz
dest
:
/tmp/
-
name
:
configure
command
:
/tmp/git-2.4.3/configure --prefix=/usr/
...
...
@@ -16,4 +18,4 @@
command
:
/usr/bin/make install
args
:
chdir
:
/tmp/git-2.4.3
become
:
yes
roles/gitlab/tasks/main.yml
View file @
f7bf4bf2
...
...
@@ -3,13 +3,21 @@
command
:
/usr/bin/gem install bundler --no-ri --no-rdoc
-
name
:
create db user
postgresql_user
:
name=gitlab role_attr_flags=CREATEDB
postgresql_user
:
name
:
gitlab
role_attr_flags
:
CREATEDB
-
name
:
create db
postgresql_db
:
name=gitlabhq_production owner=gitlab
postgresql_db
:
name
:
gitlabhq_production
owner
:
gitlab
-
name
:
checkout gitlab
git
:
repo=https://gitlab.com/gitlab-org/gitlab-ce.git version=8-5-stable clone=yes dest=/home/git/gitlab
git
:
repo
:
https://gitlab.com/gitlab-org/gitlab-ce.git
version
:
8-5-stable
clone
:
yes
dest
:
/home/git/gitlab
become
:
yes
become_user
:
git
...
...
roles/go/tasks/main.yml
View file @
f7bf4bf2
---
-
name
:
download and extract
unarchive
:
src=https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz dest=/usr/local overwrite=yes
unarchive
:
src
:
https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz
dest
:
/usr/local
overwrite
:
yes
-
name
:
make symlinks
command
:
/bin/ln -sf /usr/local/go/bin/{go,godoc,gofmt} /usr/bin/
...
...
roles/postgresql/tasks/main.yml
View file @
f7bf4bf2
---
-
name
:
add repository
yum
:
name=https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-2.noarch.rpm state=present
become
:
yes
#- name: add repository
# yum:
# name: http://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-2.noarch.rpm
# state: present
# become: yes
-
name
:
install postgresql94
yum
:
name=postgresql94 state=present
yum
:
name
:
postgresql94
state
:
latest
become
:
yes
-
name
:
install postgresql94-server
yum
:
name=postgresql94-server state=present
yum
:
name
:
postgresql94-server
state
:
latest
become
:
yes
-
name
:
install postgresql94-devel
yum
:
name=postgresql94-devel state=present
yum
:
name
:
postgresql94-devel
state
:
latest
become
:
yes
-
name
:
initdb
command
:
/sbin/service postgresql-9.4 initdb
become
:
yes
-
name
:
start postgresql94 server
service
:
name=postgresql-9.4 state=started enabled=yes
service
:
name
:
postgresql-9.4
state
:
started
enabled
:
yes
become
:
yes
roles/redis/tasks/main.yml
View file @
f7bf4bf2
---
-
name
:
add remi repo
yum
:
name=http://remi.kazukioishi.net/enterprise/remi-release-6.rpm state=present
yum
:
name
:
http://remi.kazukioishi.net/enterprise/remi-release-6.rpm
state
:
present
-
name
:
install redis
yum
:
name=redis enablerepo=remi state=latest
yum
:
name
:
redis
enablerepo
:
remi
state
:
latest
-
name
:
disable tcp listen
lineinfile
:
dest=/etc/redis.conf regexp="^port" line="port 0"
lineinfile
:
dest
:
/etc/redis.conf
regexp
:
"
^port"
line
:
"
port
0"
-
name
:
enable unix socket
blockinfile
:
...
...
@@ -16,8 +24,14 @@
unixsocketperm 770
-
name
:
start redis
service
:
name=redis-server state=restarted enabled=yes
service
:
name
:
redis-server
state
:
restarted
enabled
:
yes
-
name
:
add user redis to group git
user
:
name=redis groups=git append=yes
user
:
name
:
redis
groups
:
git
append
:
yes
roles/ruby/tasks/main.yml
View file @
f7bf4bf2
---
-
name
:
download and extract
unarchive
:
src=https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.8.tar.gz dest=/tmp/
unarchive
:
src
:
https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.8.tar.gz
dest
:
/tmp/
-
name
:
configure
command
:
/tmp/ruby-2.1.8/configure --prefix=/usr/
...
...
@@ -16,4 +18,5 @@
command
:
/usr/bin/make install
args
:
chdir
:
/tmp/ruby-2.1.8
become
:
yes
site.yml
View file @
f7bf4bf2
---
-
hosts
:
172.16.18.49
remote_user
:
roo
t
remote_user
:
vagran
t
roles
:
-
common
...
...
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