运行时出现以下错误puppet agent -t
Duplicate declaration: Class[MyModule] is already declared; cannot redeclare on node mynode.mydomain.com
我使用 heira 作为我的方法。在 mynode.mydomain.com.yaml 我有以下
classes:
- MyModule:elasticsearch
mtd::elasticsearch::install_dir: /opt/es
mtd::elasticsearch::version: 1.5.1
mtd::elasticsearch::master_node: true
mtd::elasticsearch::data_node: true
mtd::elasticsearch::cluster: elasticsearch