-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
52 lines (35 loc) · 1.42 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
refspec = master
EXTRA_VARS := refspec=$(refspec)
ifneq ($(vers),)
EXTRA_VARS += version=$(vers)
endif
ifneq ($(arch),)
EXTRA_VARS += arch=$(arch)
endif
ifneq ($(git_repo_url),)
EXTRA_VARS += git_repo_url=$(git_repo_url)
endif
ifneq ($(ceph_repo_base_url),)
EXTRA_VARS += ceph_repo_base_url=$(ceph_repo_base_url)
endif
ifneq ($(ceph_repo_gpgkey),)
EXTRA_VARS += ceph_repo_gpgkey=$(ceph_repo_gpgkey)
endif
prep.dirs:
@ansible-playbook --inventory localhost, ./ansible/prep.dirs.yml
tarball:
@ansible-playbook --inventory localhost, ./ansible/make.tarball.yml --extra-vars "$(EXTRA_VARS)"
srpm:
@ansible-playbook --inventory localhost, ./ansible/build.srpm.yml --extra-vars "$(EXTRA_VARS)"
rpms.centos:
@ansible-playbook --inventory localhost, ./ansible/build.rpms.centos.yml --extra-vars "$(EXTRA_VARS)"
test.rpms.centos:
@ansible-playbook --inventory localhost, ./ansible/test.rpms.centos.yml --extra-vars "$(EXTRA_VARS)"
rpms.rhel:
@ansible-playbook --inventory localhost, ./ansible/build.rpms.rhel.yml --extra-vars "$(EXTRA_VARS)"
test.rpms.rhel:
@ansible-playbook --inventory localhost, ./ansible/test.rpms.rhel.yml --extra-vars "$(EXTRA_VARS)"
rpms.fedora:
@ansible-playbook --inventory localhost, ./ansible/build.rpms.fedora.yml --skip-tags repos --extra-vars "$(EXTRA_VARS)"
test.rpms.fedora:
@ansible-playbook --inventory localhost, ./ansible/test.rpms.fedora.yml --skip-tags repos --extra-vars "$(EXTRA_VARS)"