Skip to content

Commit

Permalink
general cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
slapcat committed Apr 3, 2024
1 parent c724b5f commit bbb96a5
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 7 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

A lightweight agent for syncing configuration files from LDAP. Includes custom schemas for supported services as well as a default catchall schema.

<!-- asciicinema -->

# Configuration
Bureau intelligently finds and updates relevant config files from your LDAP server, so minimal configuration is necessary.

Expand Down
4 changes: 2 additions & 2 deletions keepalived.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package main

import (
"bytes"
"fmt"
"github.com/go-ldap/ldap/v3"
"log"
"bytes"
"text/template"
"github.com/go-ldap/ldap/v3"
)

type Kalived struct {
Expand Down
2 changes: 1 addition & 1 deletion ldap.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"crypto/tls"
"fmt"
"crypto/tls"
"github.com/go-ldap/ldap/v3"
)

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package main

import (
"gopkg.in/yaml.v3"
"log"
"os"
"time"
"os/exec"
"reflect"
"time"
"gopkg.in/yaml.v3"
)

type Config struct {
Expand Down
10 changes: 10 additions & 0 deletions systemd/bureau.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=bureau configuration agent
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/bureau

[Install]
WantedBy=multi-user.target
13 changes: 13 additions & 0 deletions systemd/bureau.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=bureau timer
RefuseManualStart=no
RefuseManualStop=no

[Timer]
Persistent=true
OnBootSec=120
OnUnitActiveSec=600
Unit=bureau.service

[Install]
WantedBy=timers.target

0 comments on commit bbb96a5

Please sign in to comment.