From b36716ef3619ff9881be98b0fa896ade7456a8e0 Mon Sep 17 00:00:00 2001
From: Takashi Yoshi <takashi@yoshi.email>
Date: Fri, 14 Dec 2018 12:44:41 +0100
Subject: [PATCH] [type/__sysctl] Add OpenBSD support

---
 cdist/conf/type/__sysctl/gencode-remote | 3 ++-
 cdist/conf/type/__sysctl/manifest       | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/cdist/conf/type/__sysctl/gencode-remote b/cdist/conf/type/__sysctl/gencode-remote
index 888ca117..76e5f528 100755
--- a/cdist/conf/type/__sysctl/gencode-remote
+++ b/cdist/conf/type/__sysctl/gencode-remote
@@ -1,6 +1,7 @@
 #!/bin/sh -e
 #
 # 2014 Steven Armstrong (steven-cdist at armstrong.cc)
+# 2018 Takashi Yoshi (takashi at yoshi.email)
 #
 # This file is part of cdist.
 #
@@ -31,7 +32,7 @@ case "$os" in
     redhat|centos|ubuntu|debian|devuan|archlinux|coreos)
         flag='-w'
     ;;
-    freebsd)
+    freebsd|openbsd)
         flag=''
     ;;
 esac
diff --git a/cdist/conf/type/__sysctl/manifest b/cdist/conf/type/__sysctl/manifest
index 6e337ccb..43feec04 100755
--- a/cdist/conf/type/__sysctl/manifest
+++ b/cdist/conf/type/__sysctl/manifest
@@ -1,6 +1,7 @@
 #!/bin/sh -e
 #
 # 2014 Steven Armstrong (steven-cdist at armstrong.cc)
+# 2018 Takashi Yoshi (takashi at yoshi.email)
 #
 # This file is part of cdist.
 #
@@ -22,7 +23,7 @@
 os=$(cat "$__global/explorer/os")
 
 case "$os" in
-   redhat|centos|ubuntu|debian|devuan|archlinux|coreos|freebsd)
+   redhat|centos|ubuntu|debian|devuan|archlinux|coreos|freebsd|openbsd)
       :
    ;;
    *)