kandi background
Explore Kits

disconf | Distributed Configuration Management Platform | Configuration Management library

 by   knightliao Java Version: 2.6.36 License: Apache-2.0

 by   knightliao Java Version: 2.6.36 License: Apache-2.0

Download this library from

kandi X-RAY | disconf Summary

disconf is a Java library typically used in Devops, Configuration Management applications. disconf has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub, Maven.
[![Apache License 2](https://img.shields.io/badge/license-ASF2-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0.txt) [![Build Status](https://travis-ci.org/knightliao/disconf.svg?branch=master)](https://travis-ci.org/knightliao/disconf) [![Coverage Status](https://coveralls.io/repos/knightliao/disconf/badge.png?branch=master)](https://coveralls.io/r/knightliao/disconf?branch=master) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.baidu.disconf/disconf-client/badge.svg?style=plastic)](https://maven-badges.herokuapp.com/maven-central/com.baidu.disconf/disconf-client). Distributed Configuration Management Platform(分布式配置管理平台). [「disconf」在「2015 年度新增开源软件排名 TOP 100(OSC开源中国提供)」中排名第16强。](http://www.oschina.net/news/69808/2015-annual-ranking-top-100-new-open-source-software).
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • disconf has a medium active ecosystem.
  • It has 5440 star(s) with 2321 fork(s). There are 630 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 178 open issues and 191 have been closed. On average issues are closed in 89 days. There are 24 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of disconf is 2.6.36
disconf Support
Best in #Configuration Management
Average in #Configuration Management
disconf Support
Best in #Configuration Management
Average in #Configuration Management

quality kandi Quality

  • disconf has no bugs reported.
disconf Quality
Best in #Configuration Management
Average in #Configuration Management
disconf Quality
Best in #Configuration Management
Average in #Configuration Management

securitySecurity

  • disconf has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
disconf Security
Best in #Configuration Management
Average in #Configuration Management
disconf Security
Best in #Configuration Management
Average in #Configuration Management

license License

  • disconf is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
disconf License
Best in #Configuration Management
Average in #Configuration Management
disconf License
Best in #Configuration Management
Average in #Configuration Management

buildReuse

  • disconf releases are available to install and integrate.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
disconf Reuse
Best in #Configuration Management
Average in #Configuration Management
disconf Reuse
Best in #Configuration Management
Average in #Configuration Management
Top functions reviewed by kandi - BETA

kandi has reviewed disconf and discovered the below as its top functions. This is intended to give you an instant insight into disconf implemented functionality, and help decide if they suit your requirements.

  • Processes the properties reload .
  • Verify user config
  • Transfers file .
  • Append matches .
  • Transform disjconf file .
  • This method converts a string to a UTF - 8 string .
  • update config file
  • Transform scan item .
  • Preprocess the http handle .
  • autowarefare config .

disconf Key Features

Distributed Configuration Management Platform(分布式配置管理平台)

Community Discussions

Trending Discussions on Configuration Management
  • Puppet copy file if not empty
  • Declaring configuration of custom configurable application in java?
  • To run playbook based on ansible_distribution
Trending Discussions on Configuration Management

QUESTION

Puppet copy file if not empty

Asked 2020-Dec-17 at 02:50

I have a requirement where I need to check for a file on the puppet master and copy it to the agent only if it is not empty.

I have the following so far:

  exec {
    'check_empty_file':
      provider => shell,
      command  => "test -s puppet:////path/to/puppetmaster/file",
      returns  => ["0", "1"],
  }

  if $check_empty_file == '0' {
    file {
      'file_name':
        path    => '/path/to/agent/file',
        alias   => '/path/to/agent/file',
        source  => "puppet:///path/to/puppetmaster/file",
    }
  }

But it doesn't work. Any help is appreciated. Thanks!

ANSWER

Answered 2020-Dec-17 at 02:50

You cannot use an Exec resource to perform the check, because you need to perform the evaluation during catalog building, and resources are not applied until after the catalog is built. Moreover, the test command tests for the existence of a the specified path. It does not know about URLs, and even if it did, it would be unlikely to recognize or handle the puppet: URL scheme. Furthermore, there is no association whatever between resource titles and variable names.

To gather data at catalog building time, you're looking for a puppet function. It is not that hard to add your own custom function to Puppet, but you don't need that for your case -- the built-in file() function will serve your purpose. It might look something like this:

$file_content = file('<module-name>/<file-name>')

if $file_content != '' {
  file { '/path/to/target/file':
    ensure  => 'file',
    content => $file_content,
    # ...
  }
}

Source https://stackoverflow.com/questions/65333257

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install disconf

You can download it from GitHub, Maven.
You can use disconf like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the disconf component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Consider Popular Configuration Management Libraries
Compare Configuration Management Libraries with Highest Support
Compare Configuration Management Libraries with Highest Quality
Compare Configuration Management Libraries with Highest Security
Compare Configuration Management Libraries with Permissive License
Compare Configuration Management Libraries with Highest Reuse
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.