Модуль Puppet Tomcat, создающий context.xml

310
ds2000

Я мог бы делать что-то действительно глупое здесь, но я проклят, если я смогу понять это. У нас есть обычная программа puppet с установкой tomcat, и я пытаюсь использовать модуль puppet tomcat для создания файла context.xml.

Я не верю, что у нас есть последний модуль, но readme предполагает, что он может делать то, что мне нужно:

#### Define: `tomcat::context`  Create Tomcat context files  **Parameters within `tomcat::context`:**  ##### `path` Absolute path indicating where the context file should be created. Mandatory. Does not create parent directories.  ##### `owner` File owner. Defaults to [`$`](#tomcat_user).  ##### `group` File group. Defaults to [`$`](#tomcat_group).  ##### `file_mode` File mode. Defaults to [`$`](#file_mode).  ##### `params` A hash of attributes/values for the `Context` container. See [Context](http://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Attributes) for the list of possible attributes. 

Я попробовал несколько вещей в hiera и не могу найти никаких примеров, например:

tomcat::context: dave: path: "/tmp/dave.xml" owner: 'tomcat' group: 'tomcat' filemode: '0644'' 

Полностью игнорируется. Кажется, что Context.pp снова предлагает прочитать это:

define tomcat::context ( $path, $owner = $::tomcat::tomcat_user_real, $group = $::tomcat::tomcat_group_real, $file_mode = $::tomcat::file_mode, $params = {}, $loader = {}, $manager = {}, $realm = {}, $resources = {}, $watchedresources = [], $parameters = [], $environments = [], $listeners = [], $valves = [], $resourcedefs = [], $resourcelinks = [], $jarscanner = [], ) { # The base class must be included first if !defined(Class['tomcat']) { fail('You must include the tomcat base class before using any tomcat defined resources') } 

Любая помощь приветствуется.

Спасибо

Дейв

0

0 ответов на вопрос