blob: 047b5bc4d14a8328ff8fcd961a78e7c0878eadbf [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
- name: create couchdb group
group:
name: couchdb
state: present
- name: create couchdb user
user:
name: couchdb
createhome: yes
group: couchdb
state: present
- name: install grunt-cli
npm:
name: grunt-cli
global: yes
state: present
- name: get CouchDB sources from git
git:
repo: git://git.apache.org/couchdb.git
dest: /usr/src/couchdb
accept_hostkey: yes
force: yes
# which branch/tag do we actually want to build? I'd say master.
# version: developer-preview-2.0
- name: copy build script
copy:
src: build-ci.sh
dest: /home/couchdb/build-ci.sh
owner: couchdb
group: couchdb
mode: 0755
- name: set permissions on couchdb build
file:
path: /usr/src/couchdb
state: directory
owner: couchdb
group: couchdb
recurse: yes