-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp
101 lines (55 loc) · 2.57 KB
/
temp
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
virt-install --name cfg01.mirantis.net \
--disk path=/var/lib/libvirt/images/cfg01/system.qcow2,bus=virtio,cache=none \
--disk path=/var/lib/libvirt/images/cfg01/cfg01-config.iso,device=cdrom \
--network bridge:br-pxe,model=virtio \
--network bridge:br-control,model=virtio \
--ram 6144 --vcpus=6 --accelerate \
--boot hd --vnc --noreboot --autostart
virt-install --name cfg01.mirantis.local \
--disk path=/var/lib/libvirt/images/cfg01/system.qcow2,bus=virtio,cache=none \
--disk path=/var/lib/libvirt/images/cfg01/cfg01-config.iso,device=cdrom \
--network network:test,model=virtio \
--ram 8124 --vcpus=4 --accelerate \
--boot hd --vnc --noreboot --autostart
{%- if network.host|length > 0 or network.get('purge_hosts', True) %}
virt-install --name cmp001 --connect qemu+ssh://kvmtemp/system \
--network bridge:br_mgm,model=virtio \
--network bridge:br_ctl,model=virtio \
--pxe --vnc \
--ram=10240 --vcpus=4 \
--disk path=/var/lib/libvirt/images/cmp001.img,size=100 --noreboot --autostart
ssh -f root@mcplab -L 8081:192.168.100.15:8081 -N
salt-call state.sls reclass test=True
salt-run jobs.lookup_jid 20180320002426445161
sudo iptables -A FORWARD -o br-public -i br-pxe -s 10.100.0.0/24 -m conntrack --ctstate NEW -j ACCEPT
sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
sudo iptables -t nat -F POSTROUTING
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
A FORWARD -d 192.168.122.0/24 -o virbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -s 192.168.122.0/24 -i virbr0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o br-public -j SNAT --to 172.17.18.36
ceph --admin-daemon /var/run/ceph/ceph-mon.1.asok config show
$ git fetch -unf origin 1.0.12:refs/tags/1.0.12
$ git checkout 1.0.12
git push REMOTE '*:*'
git push REMOTE --all
To push all your tags:
git push REMOTE --tags
Finally, I think you can do this all in one command with:
git push REMOTE --mirror
###############
Ceph disks
###############
1. mkfs.ext4 /dev/sdb1
2. mnt
3. qemu-img create -f raw example-vm-swap.img 1G
4. virsh attach-disk example-vm --source /var/lib/libvirt/images/example-vm-swap.img --target vdb --persistent
# mcp_lab
MCP cluster model to deploy OpenStack + k8s with contrail and ceph
# installation document is available at
https://github.com/reddydodda/mcp_Installation
##################
salt modules location :
ln -s /usr/share/salt-formulas/env/_formulas/glance/_states/glanceng.py
/usr/share/salt-formulas/env/_states/glanceng.py