Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/etc/my.conf
- [DEFAULT]
- ###########
- # Logging #
- ###########
- # syslog server configuration (default port(UDP): 514)
- # NOTE: Following logging configuration can be left as is for logs to come on UI
- syslog_host=127.0.0.1
- syslog_port=514
- # log facility
- log_facility=LOG_LOCAL3
- [HA]
- NODE_NAME=NODE1
- DIR_STR=/opt
- [OPENSTACK]
- HA_VIRTUAL_IP=192.168.0.26
- #app.py
- from lib.logging import logging_module
- from oslo.config import cfg
- cfg.CONF.register_opt(cfg.StrOpt('NODE_NAME'), cfg.OptGroup('HA'))
- def main():
- print cfg.CONF.HA.NODE_NAME
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement