Rename control into config

Change-Id: I13ef171b9294d607e590db6b8d96019477e72c71
diff --git a/devops_portal/config.sls b/devops_portal/config.sls
new file mode 100644
index 0000000..d8431c8
--- /dev/null
+++ b/devops_portal/config.sls
@@ -0,0 +1,36 @@
+{%- from "devops_portal/map.jinja" import config with context %}
+{%- if config.enabled %}
+
+devops_portal_dirs:
+  file.directory:
+    - names:
+      - {{ config.base_dir }}/nginx
+      - {{ config.base_dir }}/config
+    - user: root
+    - group: root
+    - mode: 0755
+    - makedirs: true
+
+devops_portal_nginx_conf:
+  file.managed:
+    - name: {{ config.base_dir }}/nginx/nginx.conf
+    - source: salt://devops_portal/files/nginx.conf
+    - template: jinja
+    - user: root
+    - group: root
+    - mode: 0644
+    - require:
+      - file: devops_portal_dirs
+
+devops_portal_config:
+  file.managed:
+    - name: {{ config.base_dir }}/config/config.json
+    - source: salt://devops_portal/files/config.json
+    - template: jinja
+    - user: root
+    - group: root
+    - mode: 0644
+    - require:
+      - file: devops_portal_dirs
+
+{%- endif %}