{
  "run_list": ["role[search]"],
  "sudo" : {
     "add_vagrant" : false
   },

   "elasticsearch" : {
    "cluster" : {
      "name" : "rubygems_production"
    },
    "path" : {
      "data" : "/var/lib/elasticsearch/data"
    },
    "bootstrap" : {
      "mlockall" : false
    },
    "discovery" : {
      "type" : "ec2",
      "ec2" : {
        "groups" : ["elasticsearch"]
      }
    },
    "cloud" : {
      "aws" : {
        "access_key" : "<REPLACE OR USE IAM ROLE IN AWS>",
        "secret_key" : "<REPLACE OR USE IAM ROLE IN AWS>",
        "region"     : "us-east-1"
      }
    },
    "data" : {
      "devices" : {
        "/dev/xvda2" : {
          "file_system"      : "ext3",
          "mount_options"    : "rw,user",
          "mount_path"       : "/var/lib/elasticsearch/data",
          "format_command"   : "mkfs.xfs",
          "fs_check_command" : "dumpe2fs",
          "ebs"            : {
            "device"                : "/dev/sdh",
            "size"                  : 250,
            "delete_on_termination" : true,
            "type"                  : "io1",
            "iops"                  : 2000
          }
        }
      }
    }
  }
}

{
  "run_list": ["role[search]"],
  "sudo" : {
     "add_vagrant" : false
   },

   "elasticsearch" : {
    "cluster" : {
      "name" : "rubygems_production"
    },
    "path" : {
      "data" : "/var/lib/elasticsearch/data"
    },
    "bootstrap" : {
      "mlockall" : false
    },
    "discovery" : {
      "type" : "ec2",
      "ec2" : {
        "groups" : ["elasticsearch"]
      }
    },
    "cloud" : {
      "aws" : {
        "access_key" : "<REPLACE OR USE IAM ROLE IN AWS>",
        "secret_key" : "<REPLACE OR USE IAM ROLE IN AWS>",
        "region"     : "us-east-1"
      }
    },
    "data" : {
      "devices" : {
        "/dev/xvdh" : {
          "file_system"      : "xfs",
          "mount_options"    : "rw,user",
          "mount_path"       : "/var/lib/elasticsearch/data",
          "format_command"   : "mkfs.xfs",
          "fs_check_command" : "dumpe2fs",
          "ebs"            : {
            "device"                : "/dev/sdh",
            "size"                  : 250,
            "delete_on_termination" : true,
            "type"                  : "io1",
            "iops"                  : 2000
          }
        }
      }
    }
  }
}

Use XFS everywhere and manage the proper device
Use XFS everywhere and manage the proper device
