Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a defined bareos-client to bareos-dir via puppet-bareos? #16

Open
e-it opened this issue Jan 7, 2016 · 1 comment
Open

Comments

@e-it
Copy link

e-it commented Jan 7, 2016

Hello,

forgive me but I guess I do not understand how this module works.

I would like to set up a bareos-server (dir, sd, fd) and different clients (fd).

To do so I set up a server this way:

class profile::backup::server {

## Install bareos server ##
class   {
    'bareos':
        manage_client   =>  'true',
        manage_storage  =>  'true',
        manage_director =>  'true',
        manage_console  =>  'true', 
}

bareos::storage::device {
            'device':
                media_type  =>  'File',
                archive_device  =>  '/var/bareos/backup',
}
}

Now I'm adding a client:

 class profile::backup::client {

## Install bareos client ##
    class   {
            'bareos':
                    manage_client   =>      'true',
    }   
    }

Well, the server and the clients are installed, but the configuration for the server is not set up. How can I do that?

Additionally: How can I define filesets for the backup-jobs?

@e-it
Copy link
Author

e-it commented Feb 1, 2016

I just worked on it and have some new information:

The installation of the bareos-director ("main-server") and the bareos-storage ("hdd-handler") is running fine, but if I add a node as server and one as client I do not get an export for my config.

For example:

On the director-node there are different directories and files like

├── bareos-dir.conf
├── bareos-fd.conf
├── bareos-sd.conf
├── bconsole.conf
├── clients.d
├── director.d
└── storage.d

Now for each client there should be a file called clientxy.conf in clients.d. The files bareos-sd.conf, bconsole.conf and bareos-fd.conf are generated fine - but the client is not generated.

I found a template for the clients in the module - it is located in templates/director/client.conf.erb but I do not find an attribute where I could insert this template.

This is the YAML of my bareos-director-server:

  bareos:
    client_template: bareos/bareos-fd.conf
    console_template: bareos/bconsole.conf.erb
    default_messages: Daemon
    director_template: bareos/bareos-dir.conf.erb
    manage_client: 'false'
    manage_console: 'true'
    manage_director: 'true'
    manage_storage: 'true'
    source_dir_purge: 'true'
    storage_template: bareos/bareos-sd.conf.erb

This is the YAML of my bareos-client-server:

  bareos:
    client_template: bareos/bareos-fd.conf
    console_template: bareos/bconsole.conf.erb
    default_messages: Daemon
    director_template: bareos/bareos-dir.conf.erb
    manage_client: 'true'
    manage_console: 'false'
    manage_director: 'false'
    manage_storage: 'false'
    source_dir_purge: 'false'
    storage_template: bareos/bareos-sd.conf.erb

Any ideas how to solve this and add a node automatically to bareos-dir?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant