Examples of PuppetDBClient


Examples of com.puppetlabs.puppetdb.javaclient.PuppetDBClient

  public PuppetDBClient getClient() throws BackingStoreException {
    BasicAPIPreferences prefs = new BasicAPIPreferences();
    prefs.setServiceHostname(getHostname());
    prefs.setServicePort(getPort());
    prefs.setAllowAllHosts(true);
    PuppetDBClient client;
    if(getHostCert() == null)
      client = PuppetDBClientFactory.newClient(prefs, getCommonModule());
    else {
      client = PuppetDBClientFactory.newClient(prefs, getCommonModule(), new AbstractModule() {
        @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.