Advertisement
Guest User

ntp.conf and nova.conf file

a guest
Nov 16th, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.76 KB | None | 0 0
  1. control-node /etc/ntp.conf:
  2. ===========================
  3. root@bodega:~# cat /etc/ntp.conf
  4. # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
  5.  
  6. driftfile /var/lib/ntp/ntp.drift
  7.  
  8.  
  9. # Enable this if you want statistics to be logged.
  10. #statsdir /var/log/ntpstats/
  11.  
  12. statistics loopstats peerstats clockstats
  13. filegen loopstats file loopstats type day enable
  14. filegen peerstats file peerstats type day enable
  15. filegen clockstats file clockstats type day enable
  16.  
  17. # Specify one or more NTP servers.
  18.  
  19. # Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
  20. # on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
  21. # more information.
  22. server 0.ubuntu.pool.ntp.org
  23. server 1.ubuntu.pool.ntp.org
  24. server 2.ubuntu.pool.ntp.org
  25. server 3.ubuntu.pool.ntp.org
  26.  
  27. # Use Ubuntu's ntp server as a fallback.
  28. server ntp.ubuntu.com
  29. server 127.127.1.0
  30. fudge 127.127.1.0 stratum 10
  31.  
  32. # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
  33. # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
  34. # might also be helpful.
  35. #
  36. # Note that "restrict" applies to both servers and clients, so a configuration
  37. # that might be intended to block requests from certain clients could also end
  38. # up blocking replies from your own upstream servers.
  39.  
  40. # By default, exchange time with everybody, but don't allow configuration.
  41. restrict -4 default kod notrap nomodify nopeer noquery
  42. restrict -6 default kod notrap nomodify nopeer noquery
  43.  
  44. # Local users may interrogate the ntp server more closely.
  45. restrict 127.0.0.1
  46. restrict ::1
  47.  
  48. # Clients from this (example!) subnet have unlimited access, but only if
  49. # cryptographically authenticated.
  50. #restrict 192.168.123.0 mask 255.255.255.0 notrust
  51.  
  52.  
  53. # If you want to provide time to your local subnet, change the next line.
  54. # (Again, the address is an example only.)
  55. #broadcast 192.168.123.255
  56.  
  57. # If you want to listen to time broadcasts on your local subnet, de-comment the
  58. # next lines. Please do this only if you trust everybody on the network!
  59. #disable auth
  60. #broadcastclient
  61.  
  62.  
  63. compute-node /etc/ntp.conf
  64. ==========================root@sonoma:/var/log/nova# cat /etc/ntp.conf
  65. # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
  66.  
  67. driftfile /var/lib/ntp/ntp.drift
  68.  
  69.  
  70. # Enable this if you want statistics to be logged.
  71. #statsdir /var/log/ntpstats/
  72.  
  73. statistics loopstats peerstats clockstats
  74. filegen loopstats file loopstats type day enable
  75. filegen peerstats file peerstats type day enable
  76. filegen clockstats file clockstats type day enable
  77.  
  78. # Specify one or more NTP servers.
  79.  
  80. # Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
  81. # on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
  82. # more information.
  83. server 0.ubuntu.pool.ntp.org
  84. server 1.ubuntu.pool.ntp.org
  85. server 2.ubuntu.pool.ntp.org
  86. server 3.ubuntu.pool.ntp.org
  87.  
  88. # Use Ubuntu's ntp server as a fallback.
  89. server 10.176.20.158
  90.  
  91. # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
  92. # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
  93. # might also be helpful.
  94. #
  95. # Note that "restrict" applies to both servers and clients, so a configuration
  96. # that might be intended to block requests from certain clients could also end
  97. # up blocking replies from your own upstream servers.
  98.  
  99. # By default, exchange time with everybody, but don't allow configuration.
  100. restrict -4 default kod notrap nomodify nopeer noquery
  101. restrict -6 default kod notrap nomodify nopeer noquery
  102.  
  103. # Local users may interrogate the ntp server more closely.
  104. restrict 127.0.0.1
  105. restrict ::1
  106.  
  107. # Clients from this (example!) subnet have unlimited access, but only if
  108. # cryptographically authenticated.
  109. #restrict 192.168.123.0 mask 255.255.255.0 notrust
  110.  
  111.  
  112. # If you want to provide time to your local subnet, change the next line.
  113. # (Again, the address is an example only.)
  114. #broadcast 192.168.123.255
  115.  
  116. # If you want to listen to time broadcasts on your local subnet, de-comment the
  117. # next lines. Please do this only if you trust everybody on the network!
  118. #disable auth
  119. #broadcastclient
  120. root@sonoma:/var/log/nova#
  121.  
  122.  
  123.  
  124.  
  125.  
  126. control-node nova.conf file:
  127. ============================
  128. [DEFAULT]
  129. # LOGS/STATE
  130. verbose=True
  131. logdir=/var/log/nova
  132. state_path=/var/lib/nova
  133. lock_path=/var/lock/nova
  134. rootwrap_config=/etc/nova/rootwrap.conf
  135.  
  136. # AUTHENTICATION
  137. auth_strategy=keystone
  138. # [keystone_authtoken]
  139. auth_host = 127.0.0.1
  140. auth_port = 35357
  141. auth_protocol = http
  142. admin_tenant_name = service
  143. admin_user = nova
  144. admin_password = nova
  145. signing_dirname = /tmp/keystone-signing-nova
  146.  
  147. # SCHEDULER
  148. compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
  149.  
  150. # Cinder - VOLUMES
  151. #volume_driver=nova.volume.driver.ISCSIDriver
  152. #volume_group=nova-volumes
  153. #volume_name_template=volume-%08x
  154. #iscsi_helper=tgtadm
  155. volume_api_class=nova.volume.cinder.API
  156.  
  157.  
  158.  
  159. # DATABASE
  160. sql_connection=mysql://nova:[email protected]/nova
  161.  
  162. # COMPUTE
  163. libvirt_type=kvm
  164. compute_driver=libvirt.LibvirtDriver
  165. instance_name_template=instance-%08x
  166. api_paste_config=/etc/nova/api-paste.ini
  167.  
  168. # COMPUTE/APIS: if you have separate configs for separate services
  169. # this flag is required for both nova-api and nova-compute
  170. allow_resize_to_same_host=True
  171.  
  172. # APIS
  173. enabled_apis=ec2,osapi_compute,metadata
  174. osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
  175. ec2_dmz_host=10.176.20.158
  176. s3_host=10.176.20.158
  177.  
  178. # RABBITMQ
  179. rabbit_host=10.176.20.158
  180.  
  181. # GLANCE
  182. image_service=nova.image.glance.GlanceImageService
  183. glance_api_servers=10.176.20.158:9292
  184.  
  185. # NETWORK
  186. network_manager=nova.network.manager.FlatDHCPManager
  187. force_dhcp_release=True
  188. dhcpbridge_flagfile=/etc/nova/nova.conf
  189. firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
  190. # Change my_ip to match each host
  191. my_ip=10.176.20.158
  192. public_interface=eth0
  193. flat_interface=eth1
  194. flat_network_bridge=br100
  195. fixed_range=192.168.100.0/24
  196.  
  197. # NOVNC CONSOLE
  198. novncproxy_base_url=http://10.176.20.158:6080/vnc_auto.html
  199. # Change vncserver_proxyclient_address and vncserver_listen to match each compute host
  200. vncserver_proxyclient_address=10.176.20.158
  201. vncserver_listen=10.176.20.158
  202.  
  203.  
  204. # Following config kept from initial conf file installed by nova
  205. dhcpbridge=/usr/bin/nova-dhcpbridge
  206. libvirt_use_virtio_for_bridges=True
  207. connection_type=libvirt
  208. root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
  209. ec2_private_dns_show_ip=True
  210. volumes_path=/var/lib/nova/volumes
  211.  
  212.  
  213. compute-node nova.conf:
  214. =======================
  215.  
  216. [DEFAULT]
  217. # LOGS/STATE
  218. verbose=True
  219. logdir=/var/log/nova
  220. state_path=/var/lib/nova
  221. lock_path=/var/lock/nova
  222. rootwrap_config=/etc/nova/rootwrap.conf
  223.  
  224. # AUTHENTICATION
  225. auth_strategy=keystone
  226. # [keystone_authtoken]
  227. auth_host = 127.0.0.1
  228. auth_port = 35357
  229. auth_protocol = http
  230. admin_tenant_name = service
  231. admin_user = nova
  232. admin_password = nova
  233. signing_dirname = /tmp/keystone-signing-nova
  234.  
  235. # SCHEDULER
  236. compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
  237.  
  238. # Cinder - VOLUMES
  239. #volume_driver=nova.volume.driver.ISCSIDriver
  240. #volume_group=nova-volumes
  241. #volume_name_template=volume-%08x
  242. #iscsi_helper=tgtadm
  243. volume_api_class=nova.volume.cinder.API
  244.  
  245.  
  246.  
  247. # DATABASE
  248. sql_connection=mysql://nova:[email protected]/nova
  249.  
  250. # COMPUTE
  251. libvirt_type=kvm
  252. compute_driver=libvirt.LibvirtDriver
  253. instance_name_template=instance-%08x
  254. api_paste_config=/etc/nova/api-paste.ini
  255.  
  256. # COMPUTE/APIS: if you have separate configs for separate services
  257. # this flag is required for both nova-api and nova-compute
  258. allow_resize_to_same_host=True
  259.  
  260. # APIS
  261. enabled_apis=ec2,osapi_compute,metadata
  262. osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
  263. ec2_dmz_host=10.176.20.158
  264. s3_host=10.176.20.158
  265.  
  266. # RABBITMQ
  267. rabbit_host=10.176.20.158
  268.  
  269. # GLANCE
  270. image_service=nova.image.glance.GlanceImageService
  271. glance_api_servers=10.176.20.158:9292
  272.  
  273. # NETWORK
  274. network_manager=nova.network.manager.FlatDHCPManager
  275. force_dhcp_release=True
  276. dhcpbridge_flagfile=/etc/nova/nova.conf
  277. firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
  278. # Change my_ip to match each host
  279. my_ip=10.176.20.4
  280. public_interface=eth0
  281. flat_interface=eth1
  282. flat_network_bridge=br100
  283. fixed_range=192.168.100.0/24
  284.  
  285. # NOVNC CONSOLE
  286. novncproxy_base_url=http://10.176.20.158:6080/vnc_auto.html
  287. # Change vncserver_proxyclient_address and vncserver_listen to match each compute host
  288. vncserver_proxyclient_address=10.176.20.4
  289. vncserver_listen=10.176.20.4
  290.  
  291.  
  292. # Following config kept from initial conf file installed by nova
  293. dhcpbridge=/usr/bin/nova-dhcpbridge
  294. libvirt_use_virtio_for_bridges=True
  295. connection_type=libvirt
  296. root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
  297. ec2_private_dns_show_ip=True
  298. volumes_path=/var/lib/nova/volumes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement