mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
fixed devel ansible
This commit is contained in:
2
data/vagrant/Vagrantfile
vendored
2
data/vagrant/Vagrantfile
vendored
@@ -54,7 +54,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
# View the documentation for the provider you're using for more
|
||||
# information on available options.
|
||||
config.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "cgrates_release.yml"
|
||||
ansible.playbook = "cgrates_devel.yml"
|
||||
#ansible.verbose = "vvvv"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -38,11 +38,7 @@
|
||||
|
||||
- name: copy .my.cnf
|
||||
template: src=my.cnf dest=/root/.my.cnf mode=0600
|
||||
|
||||
- hosts: all
|
||||
user: vagrant
|
||||
|
||||
tasks:
|
||||
|
||||
- name: get golang
|
||||
get_url: url=http://go.googlecode.com/files/go1.2.linux-amd64.tar.gz dest=~/go1.2.linux-amd64.tar.gz
|
||||
|
||||
@@ -59,11 +55,12 @@
|
||||
shell: GOROOT=~/go GOPATH=~/code ~/go/bin/go get -u -v github.com/cgrates/cgrates
|
||||
|
||||
- name: create a link to data dir
|
||||
file: src=~/code/src/github.com/cgrates/cgrates/data dest=/usr/share/cgrates state=symlink
|
||||
sudo: yes
|
||||
file: src=~/code/src/github.com/cgrates/cgrates/data dest=/usr/share/cgrates state=link
|
||||
|
||||
- name: setup database tables
|
||||
shell: chdir=/usr/share/cgrates/storage/mysql ./setup_cgr_db.sh root {{ root_db_password }} localhost
|
||||
|
||||
- name: create link to cgrates dir
|
||||
file: src=~/code/src/github.com/cgrates/cgrates dest=~/cgr state=symlink
|
||||
file: src=~/code/src/github.com/cgrates/cgrates dest=~/cgr state=link
|
||||
|
||||
|
||||
Reference in New Issue
Block a user