Skip to content

Commit

Permalink
Fixed chef server error and added chef client version
Browse files Browse the repository at this point in the history
  • Loading branch information
valenbb committed Sep 10, 2018
1 parent e4dd0a5 commit ee6304d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
23 changes: 12 additions & 11 deletions test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,18 @@ resource "aws_instance" "test_server" {

provisioner "chef" {
connection {
type = "${var.connection_type}"
user = "${var.server_user}"
private_key = "${file("${var.ssh_key_filename}")}"
type = "${var.connection_type}"
user = "${var.server_user}"
private_key = "${file("${var.ssh_key_filename}")}"
}
environment = "${var.chef_environment}"
run_list = "${var.run_list}"
node_name = "${var.tag_name}-${var.tag_env}"
server_url = "${var.chef_server_url}"
recreate_client = true
user_name = "${var.chef_server_user_name}"
user_key = "${file(var.chef_server_user_key)}"
ssl_verify_mode = "${var.ssl_verify_mode}"
environment = "${var.chef_environment}"
run_list = "${var.run_list}"
node_name = "${var.tag_name}-${var.tag_env}"
server_url = "${var.chef_server_url}"
recreate_client = true
user_name = "${var.chef_server_user_name}"
user_key = "${file(var.chef_server_user_key)}"
version = "12.4.1"
ssl_verify_mode = "${var.ssl_verify_mode}"
}
}
7 changes: 6 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ variable "tag_builder" {

variable "chef_server_url" {
description = "Chef Server URL"
default = "https://10.0.1.244/organizations/esn2"
default = "https://10.0.1.244/organizations/rmt"
}

variable "chef_server_user_name" {
Expand Down Expand Up @@ -117,3 +117,8 @@ variable "connection_type" {
description = "protocol to connect to AWS server"
default = "ssh"
}

variable "chef_client" {
description = "chef client to install on node"
default = "13.8.5"
}

0 comments on commit ee6304d

Please sign in to comment.