如何关闭dashboard界面UI的编辑功能

Dashboard社区目前最新版本为1.2.23,界面添加node、group、class功能基本不能用,为了防止平时修改出错,如果将其关闭呢?

有关puppet报告系统Dashboard部署及配置详解请参看 http://kisspuppet.com/2013/11/09/dashboard/

正常安装好Dashboard的操作界面如下:

puppet dashboard

[root@puppetserver ~]# cd /usr/share/puppet-dashboard/config
[root@puppetserver config]# vim settings.yml
...
# Disables the UI and controller actions for editing nodes, classes, groups and reports.  Report submission is still allowed
enable_read_only_mode: true  #修改为true
...

修改后的Dashboard的操作界面如下:

puppet dashboard